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

If stored procedure or trigger contains query with PLAN ORDER it could fail after disconnect of attachment where procedure\trigger executed first time [CORE2817] #3204

Closed
firebird-automations opened this issue Jan 20, 2010 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

CREATE OR ALTER PROCEDURE SP_TEST
AS
DECLARE DUMMY INT;
BEGIN
FOR SELECT 1 FROM RDB$RELATION_FIELDS F ORDER BY F.RDB$FIELD_NAME
INTO :DUMMY
DO BEGIN
END
END

isql 1
EXECUTE PROCEDURE SP_TEST;

isql 2
EXECUTE PROCEDURE SP_TEST;

isql 1
EXIT;

isql 2
EXECUTE PROCEDURE SP_TEST;

Statement failed, SQLSTATE = 42000
At procedure 'SP_TEST'

Commits: 12cf2ed b5bbe96

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

The issue was introduced by fix for CORE2616 and affects only v2.5 as previous versions (2.1.4 and 2.0.6) used another implementation of BtrPageGCLock class.

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC2 [ 10372 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

QA Status: No test => Done successfully

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

No branches or pull requests

2 participants