]> granicus.if.org Git - postgresql/commitdiff
Fix pg_dump bug in the database-level collation patch. "datcollate" and
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Sep 2008 19:33:15 +0000 (19:33 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Sep 2008 19:33:15 +0000 (19:33 +0000)
"datctype" columns were misspelled. Per report from Chris Browne.

src/bin/pg_dump/pg_dump.c

index 55b944ae948ce9b25c97152070edbb4230da0ad0..074b647c338c43f07b9f75b927aac49e1d4096cd 100644 (file)
@@ -12,7 +12,7 @@
  *     by PostgreSQL
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.501 2008/09/23 09:20:37 heikki Exp $
+ *       $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.502 2008/09/24 19:33:15 heikki Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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));