diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-23 13:26:58 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-09-25 14:50:07 +0200 |
commit | 6d01cf0cabb1168159c3b013bc64b0a33a96f0c7 (patch) | |
tree | 850048c7abcc74b90a56bf0120d84fd199b3d0d9 /mysqlc | |
parent | 5deb6f29a4038f2de88abbc676e485f5bb5c150d (diff) |
tdf#103685: "Commands out of sync" when connecting to MySQL using direct
Thanks to Lionel for his great help
Reviewed-on: https://gerrit.libreoffice.org/42688
Tested-by: Jenkins <ci@libreoffice.org>
(cherry picked from commit 444730a67dbd2ad6cebe666b2cd23c67d5c668f2)
Change-Id: Ifcc1d72cca29c031f31da203cd1e3302ea0ea3e3
Reviewed-on: https://gerrit.libreoffice.org/42701
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_statement.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mysqlc/source/mysqlc_statement.cxx b/mysqlc/source/mysqlc_statement.cxx index e881dda8ddd4..890e8f52137c 100644 --- a/mysqlc/source/mysqlc_statement.cxx +++ b/mysqlc/source/mysqlc_statement.cxx @@ -175,7 +175,7 @@ Reference< XConnection > SAL_CALL OCommonStatement::getConnection() sal_Int32 SAL_CALL OCommonStatement::getUpdateCount() { - return 0; + return cppStatement->getUpdateCount(); } Any SAL_CALL OStatement::queryInterface(const Type & rType) @@ -240,9 +240,7 @@ sal_Bool SAL_CALL OCommonStatement::getMoreResults() MutexGuard aGuard(m_aMutex); checkDisposed(rBHelper.bDisposed); - // if your driver supports more than only one resultset - // and has one more at this moment return true - return false; + return cppStatement->getMoreResults(); } Any SAL_CALL OCommonStatement::getWarnings() |