mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
*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:
parent
39ebf3270e
commit
32d4e5958e
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue