diff options
author | Slávek Banko <[email protected]> | 2019-08-31 19:29:47 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-08-31 19:30:02 +0200 |
commit | 6ab990c5459b0292e303ce86c311416eb93b9474 (patch) | |
tree | 5d55a4f201fb534a7e3add8f5d643b8274008857 /src/sql | |
parent | 63201b0193c88494a7d7fb6bc20aefb4a1dde350 (diff) | |
download | tqt3-6ab990c5459b0292e303ce86c311416eb93b9474.tar.gz tqt3-6ab990c5459b0292e303ce86c311416eb93b9474.zip |
Fix FTBFS from prior commit.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit aae0287741331748bf0c89cbe4db025bb8cf3af2)
Diffstat (limited to 'src/sql')
-rw-r--r-- | src/sql/drivers/mysql/qsql_mysql.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sql/drivers/mysql/qsql_mysql.cpp b/src/sql/drivers/mysql/qsql_mysql.cpp index 48337f884..131e76237 100644 --- a/src/sql/drivers/mysql/qsql_mysql.cpp +++ b/src/sql/drivers/mysql/qsql_mysql.cpp @@ -542,11 +542,11 @@ bool TQMYSQLDriver::open( const TQString& db, if (clientOptionFlags & CLIENT_SSL) { mysql_ssl_set(d->mysql, - ssl_key.isEmpty()? static_cast<const char *>(0):ssl_key.local8Bit(), - ssl_cert.isEmpty()? static_cast<const char *>(0):ssl_cert.local8Bit(), - ssl_ca.isEmpty()? static_cast<const char *>(0):ssl_ca.local8Bit(), - ssl_capath.isEmpty()? static_cast<const char *>(0):ssl_capath.local8Bit(), - ssl_cipher.isEmpty()? static_cast<const char *>(0):ssl_cipher.local8Bit() + ssl_key.isEmpty()? static_cast<const char *>(0):ssl_key.local8Bit().data(), + ssl_cert.isEmpty()? static_cast<const char *>(0):ssl_cert.local8Bit().data(), + ssl_ca.isEmpty()? static_cast<const char *>(0):ssl_ca.local8Bit().data(), + ssl_capath.isEmpty()? static_cast<const char *>(0):ssl_capath.local8Bit().data(), + ssl_cipher.isEmpty()? static_cast<const char *>(0):ssl_cipher.local8Bit().data() ); } mysql_options(d->mysql, MYSQL_OPT_RECONNECT, &reconnect); |