mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Fixed CORE-6386 - ALTER SEQUENCE RESTART WITH <n> should not change the initial sequence START value.
This commit is contained in:
parent
15aa904d9c
commit
e94c66bcc6
@ -5832,14 +5832,6 @@ bool CreateAlterSequenceNode::executeAlter(thread_db* tdbb, DsqlCompilerScratch*
|
||||
|
||||
transaction->getGenIdCache()->put(id,
|
||||
newValue - (!X.RDB$GENERATOR_INCREMENT.NULL ? X.RDB$GENERATOR_INCREMENT : 1));
|
||||
|
||||
if (newValue != oldValue)
|
||||
{
|
||||
MODIFY X
|
||||
X.RDB$INITIAL_VALUE.NULL = FALSE;
|
||||
X.RDB$INITIAL_VALUE = newValue;
|
||||
END_MODIFY
|
||||
}
|
||||
}
|
||||
|
||||
dsc desc;
|
||||
|
Loading…
Reference in New Issue
Block a user