8
0
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:
Adriano dos Santos Fernandes 2020-08-12 12:31:05 -03:00
parent 15aa904d9c
commit e94c66bcc6

View File

@ -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;