mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 14:43:03 +01:00
Postfix for CORE-6084 and CORE-6376: fix initial default value to be 1.
This commit is contained in:
parent
73d954fc50
commit
4d1ce73e33
@ -5730,7 +5730,7 @@ void CreateAlterSequenceNode::executeCreate(thread_db* tdbb, DsqlCompilerScratch
|
||||
executeDdlTrigger(tdbb, dsqlScratch, transaction, DTW_BEFORE, DDL_TRIGGER_CREATE_SEQUENCE,
|
||||
name, NULL);
|
||||
|
||||
const SINT64 val = value.specified ? value.value : 0;
|
||||
const SINT64 val = value.orElse(1);
|
||||
SLONG initialStep = 1;
|
||||
if (step.specified)
|
||||
{
|
||||
@ -6478,7 +6478,7 @@ void RelationNode::defineField(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch
|
||||
|
||||
CreateAlterSequenceNode::store(tdbb, transaction, fieldDefinition.identitySequence,
|
||||
fb_sysflag_identity_generator,
|
||||
clause->identityOptions->startValue.orElse(0),
|
||||
clause->identityOptions->startValue.orElse(1),
|
||||
clause->identityOptions->increment.orElse(1));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user