Skip to content

Commit a53ef3a

Browse files
authored
Merge pull request IvorySQL#1193 from Data-Bene/fix-dump-identity
Fix output string to create IDENTITY sequence
2 parents 97f1790 + dc282ef commit a53ef3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19103,7 +19103,7 @@ dumpSequence(Archive *fout, const TableInfo *tbinfo)
1910319103
else if (owning_tab->attidentity[tbinfo->owning_col - 1] == ATTRIBUTE_ORA_IDENTITY_BY_DEFAULT)
1910419104
appendPQExpBufferStr(query, "BY DEFAULT");
1910519105
else if (owning_tab->attidentity[tbinfo->owning_col - 1] == ATTRIBUTE_IDENTITY_DEFAULT_ON_NULL)
19106-
appendPQExpBufferStr(query, "BY DEFAULT NO NULL");
19106+
appendPQExpBufferStr(query, "BY DEFAULT ON NULL");
1910719107
appendPQExpBuffer(query, " AS IDENTITY (\n");
1910819108
}
1910919109
}

0 commit comments

Comments
 (0)