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

Setting generator value twice in single transaction will set it to zero [CORE4173] #4499

Closed
firebird-issue-importer opened this issue Aug 9, 2013 · 5 comments

Comments

@firebird-issue-importer
Copy link

firebird-issue-importer commented Aug 9, 2013

Submitted by: prenosil (prenosil)

SQL> SET AUTODDL OFF;
SQL> SET GENERATOR G TO 111;
SQL> COMMIT;
SQL> SELECT Gen_id(G,0) FROM RDB$DATABASE;
GEN_ID

              111

SQL> SET GENERATOR G TO 222;
SQL> SELECT Gen_id(G,0) FROM RDB$DATABASE;
GEN_ID

              222

SQL> SET GENERATOR G TO 333;
SQL> SELECT Gen_id(G,0) FROM RDB$DATABASE;
GEN_ID

              333

SQL> COMMIT;
SQL> SELECT Gen_id(G,0) FROM RDB$DATABASE;
GEN_ID

                0

Commits: a1362f9 FirebirdSQL/fbt-repository@5f76ae2

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 9, 2013

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 9, 2013

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 2 [ 10560 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 9, 2013

Commented by: Sean Leyne (seanleyne)

Did this affect previous versions, or was this a regression introduced in v3?

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Aug 10, 2013

Commented by: @dyemanov

v3 only, as indicated in the ticket. And just FYI: I don't like the subjects being changed for "regression" ;-) Usually, this is obvious from the ticket itself.

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented May 29, 2015

Modified by: @pavel-zotov

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

QA Status: 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