*PostgreSQL: Fixed issue in hex blob format identification

git-svn-id: svn://ultimatepp.org/upp/trunk@5112 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-07-04 10:58:14 +00:00
parent 39ebf3270e
commit 32d4e5958e

View file

@ -372,9 +372,8 @@ bool PostgreSQLSession::Open(const char *connect)
LLOG( String("Postgresql client encoding: ") + pg_encoding_to_char( PQclientEncoding(conn) ) );
Sql sql(*this);
if(sql.Execute("select setting from pg_settings where name = 'bytea_output'") && sql[0] == "hex")
if(sql.Execute("select setting from pg_settings where name = 'bytea_output'") && sql.Fetch() && sql[0] == "hex")
hex_blobs = true;
return true;