1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00

2) Can't dump/restore varchar fields (See attached bug report/patch)

Cary B. O'Brien
This commit is contained in:
Bruce Momjian 1998-10-12 02:05:42 +00:00
parent 8a7bec3d45
commit b0dfc47794

View File

@ -21,7 +21,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.91 1998/10/06 22:14:19 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.92 1998/10/12 02:05:42 momjian Exp $
* *
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* *
@ -2649,10 +2649,14 @@ dumpTables(FILE *fout, TableInfo *tblinfo, int numTables,
(actual_atts > 0) ? ", " : "", (actual_atts > 0) ? ", " : "",
fmtId(tblinfo[i].attnames[j]), fmtId(tblinfo[i].attnames[j]),
tblinfo[i].typnames[j]); tblinfo[i].typnames[j]);
if(tblinfo[i].atttypmod[j] != -1) {
sprintf(q, "%s(%d)", sprintf(q, "%s(%d)",
q, q,
tblinfo[i].atttypmod[j] - VARHDRSZ); tblinfo[i].atttypmod[j] - VARHDRSZ);
}
else {
sprintf(q, "%s", q);
}
actual_atts++; actual_atts++;
} }
else else