mirror of
https://github.com/postgres/postgres.git
synced 2025-08-09 17:03:00 +03:00
Fix for no NULL in CREATE TABLE.
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.39 1997/08/21 02:28:41 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.40 1997/08/22 17:15:41 momjian Exp $
|
||||||
*
|
*
|
||||||
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
||||||
*
|
*
|
||||||
@@ -1779,8 +1779,8 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
|
|||||||
tblinfo[i].typnames[j]);
|
tblinfo[i].typnames[j]);
|
||||||
actual_atts++;
|
actual_atts++;
|
||||||
}
|
}
|
||||||
sprintf(q, "%s%s NULL", q,
|
if (tblinfo[i].notnull[j])
|
||||||
(tblinfo[i].notnull[j]) ? " NOT" : "");
|
sprintf(q, "%s NOT NULL", q);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user