From: Ben Pfaff Date: Wed, 4 May 2011 04:53:17 +0000 (-0700) Subject: psql-reader: Fix build when PostgreSQL is installed. X-Git-Tag: v0.7.8~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa1fed2b4f9ef863dbabadfb2f8ea71e0c927479;p=pspp-builds.git psql-reader: Fix build when PostgreSQL is installed. Problem reported by "Mindaugas Baranauskas" . --- diff --git a/src/data/psql-reader.c b/src/data/psql-reader.c index 2d9a2678..4cbd8409 100644 --- a/src/data/psql-reader.c +++ b/src/data/psql-reader.c @@ -297,10 +297,10 @@ psql_open_reader (struct psql_read_info *info, struct dictionary **dict) if we find this value. */ encoding = enc ? pg_encoding_to_char (enc) : get_default_encoding (); - } - /* Create the dictionary and populate it */ - *dict = r->dict = dict_create (); + /* Create the dictionary and populate it */ + *dict = r->dict = dict_create (encoding); + } /* select count (*) from (select * from medium) stupid_sql_standard;