ALTER SEQUENCE RESTART statement does not conform to SQL standard
-----------------------------------------------------------------
Key: CORE-4349
URL: http://tracker.firebirdsql.org/browse/CORE-4349
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 2.5.2 Update 1
Reporter: Lukas Eder
Priority: Minor
When I'm running these statements:
create sequence s_author_id
alter sequence s_author_id restart with 1
select next value for s_author_id from "RDB$DATABASE"
I'd expect to get 1 as a result for the last query. However, I get 2. While
this matches what is documented in the manual...
http://www.firebirdsql.org/refdocs/langrefupd20-alter-seq.html
... I do believe that this is wrong. Instead, 1 should really be the next
value. This observation matches the behaviour of these databases:
- DB2
- H2
- HSQLDB
- Ingres
- PostgreSQL
- SQL Server
- Sybase SQL Anywhere
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel