Skip to content

Commit e045278

Browse files
committed
Fix for no NULL in CREATE TABLE.
1 parent 50881e3 commit e045278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.39 1997/08/21 02:28:41 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.40 1997/08/22 17:15:41 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - [email protected] - version 1.13.dhb
2727
*
@@ -1779,8 +1779,8 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
17791779
tblinfo[i].typnames[j]);
17801780
actual_atts++;
17811781
}
1782-
sprintf(q, "%s%s NULL", q,
1783-
(tblinfo[i].notnull[j]) ? " NOT" : "");
1782+
if (tblinfo[i].notnull[j])
1783+
sprintf(q, "%s NOT NULL", q);
17841784
}
17851785
}
17861786

0 commit comments

Comments
 (0)