Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible index corruption with multiply updates of the same record in the same transaction and using of savepoints [CORE1830] #2259

Closed
firebird-automations opened this issue Apr 11, 2008 · 12 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Is related to QA214

CREATE TABLE A
(
ID CHAR(1), NAME VARCHAR(255)
);

CREATE INDEX IDX_A ON A (ID);
CREATE EXCEPTION EX_PERM 'AAA';
COMMIT ;

INSERT INTO A (ID) VALUES ('1');
SELECT * FROM A WHERE ID = '1'

-- record is present

EXECUTE BLOCK AS
BEGIN
UPDATE A SET NAME = 'xxx';
UPDATE A SET ID = '2';
EXCEPTION EX_PERM;
END
SELECT * FROM A -- record with ID = 1 is present
SELECT * FROM A WHERE ID = '1' -- no record is returned

COMMIT; -- corruption - index is missed entries

I tested it with HEAD only but i think this is very old bug

Commits: c89987f c0cbd0f 3156def b04aa77

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 Alpha 1 [ 10224 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Backported into v2.1.1

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Version: 2.0.4 [ 10211 ]

Version: 2.1.0 [ 10041 ]

Version: 1.5.5 [ 10220 ]

Version: 2.0.3 [ 10200 ]

Version: 2.0.2 [ 10130 ]

Version: 2.0.1 [ 10090 ]

Version: 1.5.4 [ 10100 ]

Version: 2.0.0 [ 10091 ]

Version: 1.0.3 [ 10006 ]

Fix Version: 2.1.1 [ 10223 ]

Fix Version: 2.0.5 [ 10222 ]

Version: 2.5 Alpha 1 [ 10224 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Backported into 2.0.5 and 1.5.6

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Fix Version: 1.5.6 [ 10225 ]

security: Developers [ 10012 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue block progress on QA214 [ QA214 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA214 [ QA214 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue block progress on QA214 [ QA214 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment