aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-22 17:15:41 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-22 17:15:41 +0000
commite045278e7e0dbb662e07f15276ade3baede78700 (patch)
treee248a89abf89d74b8c67227a9513fcd2dc3be9d8
parent50881e336b150988311572026aca6c2599da3bf0 (diff)
downloadpostgresql-e045278e7e0dbb662e07f15276ade3baede78700.tar.gz
postgresql-e045278e7e0dbb662e07f15276ade3baede78700.zip
Fix for no NULL in CREATE TABLE.
-rw-r--r--src/bin/pg_dump/pg_dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 8eae85911a6..c006505a13b 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -21,7 +21,7 @@
*
*
* 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
*
@@ -1779,8 +1779,8 @@ void dumpTables(FILE* fout, TableInfo *tblinfo, int numTables,
tblinfo[i].typnames[j]);
actual_atts++;
}
- sprintf(q, "%s%s NULL", q,
- (tblinfo[i].notnull[j]) ? " NOT" : "");
+ if (tblinfo[i].notnull[j])
+ sprintf(q, "%s NOT NULL", q);
}
}