projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f67fee
)
psql-reader: Fix build when PostgreSQL is installed.
author
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 4 May 2011 04:53:17 +0000
(21:53 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Wed, 4 May 2011 04:53:54 +0000
(21:53 -0700)
Problem reported by "Mindaugas Baranauskas" <embar@super.lt>.
src/data/psql-reader.c
patch
|
blob
|
history
diff --git
a/src/data/psql-reader.c
b/src/data/psql-reader.c
index 2d9a2678086380725b8cb812305f5682373e8bf0..4cbd8409eae549cf6cd1118a001c698e46a88125 100644
(file)
--- 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;