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/1360/head
Jason Petersen 2017-04-19 23:36:30 -06:00
parent ef6d3587b6
commit f0c6c47c4e
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 1 additions and 1 deletions

View File

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