mirror of https://github.com/citusdata/citus.git
Fix CREATE SEQUENCE generation bug
Apparently we've had a typo all this time causing us to pass the cache value for the start value.pull/1938/head
parent
260989677c
commit
5a242bf9b5
|
@ -195,7 +195,7 @@ pg_get_sequencedef_string(Oid sequenceRelationId)
|
|||
qualifiedSequenceName = generate_relation_name(sequenceRelationId, NIL);
|
||||
sequenceDef = psprintf(CREATE_SEQUENCE_COMMAND, qualifiedSequenceName,
|
||||
pgSequenceForm->increment_by, pgSequenceForm->min_value,
|
||||
pgSequenceForm->max_value, pgSequenceForm->cache_value,
|
||||
pgSequenceForm->max_value, pgSequenceForm->start_value,
|
||||
pgSequenceForm->is_cycled ? "" : "NO ");
|
||||
|
||||
return sequenceDef;
|
||||
|
|
Loading…
Reference in New Issue