From: Heikki Linnakangas Date: Wed, 24 Sep 2008 19:33:15 +0000 (+0000) Subject: Fix pg_dump bug in the database-level collation patch. "datcollate" and X-Git-Tag: recoveryinfrav9~611 X-Git-Url: http://git.postgresql.org/gitweb/irc:/static/gitweb.js?a=commitdiff_plain;h=e4dd75a612d04efbdcb53d6d19c16d610a4d718a;p=users%2Fsimon%2Fpostgres.git Fix pg_dump bug in the database-level collation patch. "datcollate" and "datctype" columns were misspelled. Per report from Chris Browne. --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 6a31dccc35..6c0f8278f9 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -1653,8 +1653,8 @@ dumpDatabase(Archive *AH) i_oid = PQfnumber(res, "oid"); i_dba = PQfnumber(res, "dba"); i_encoding = PQfnumber(res, "encoding"); - i_collate = PQfnumber(res, "collate"); - i_ctype = PQfnumber(res, "ctype"); + i_collate = PQfnumber(res, "datcollate"); + i_ctype = PQfnumber(res, "datctype"); i_tablespace = PQfnumber(res, "tablespace"); dbCatId.tableoid = atooid(PQgetvalue(res, 0, i_tableoid));