diff options
author | Robert Szefner <r.szefner@hydro-partner.pl> | 2017-10-20 23:31:12 +0200 |
---|---|---|
committer | Robert Szefner <robertsz27@interia.pl> | 2017-11-04 20:58:08 +0000 |
commit | ff914ea59c3788b2359ddb8d607299576b7a1296 (patch) | |
tree | cebceb1825d18736ccb4d6a11c7e1c20aee0b884 /LICENSE.GPLv3 | |
parent | 435c4b2ccbbb7284918dd2d4a14f8e44c3977d98 (diff) |
QPSQL: Fix handling binary data for PostgreSQL 9.x and later
Set byte_output to 'escape' mode for server version 9 and later,
no matter what version of client library we use.
Since setting byte_output doesn't depend on client version anymore,
we can move it to separate function.
This fixes qtbase\tests\auto\sql\kernel\qsqldatabase
tst_QSqlDatabase::psql_escapeBytea() test
(before this change test did not pass on PostgreSQL 9.6)
Change-Id: I37aaa18267d7e6459c00010ed899536c01e8124e
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'LICENSE.GPLv3')
0 files changed, 0 insertions, 0 deletions