projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
psql-reader: Fix build when PostgreSQL is installed.
[pspp-builds.git]
/
src
/
data
/
psql-reader.c
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 ();
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;
/*
select count (*) from (select * from medium) stupid_sql_standard;