Skip to content

Commit dc282ef

Browse files
committed
Fix output string to create IDENTITY sequence
was "NO NULL" insteaf of "ON NULL"
1 parent 97f1790 commit dc282ef

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)