diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-23 13:26:58 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2017-09-24 08:25:57 +0200 |
commit | 444730a67dbd2ad6cebe666b2cd23c67d5c668f2 (patch) | |
tree | 935f988d408ade7177abffe7f1d819f43b232c5e /mysqlc | |
parent | 722161e26437b25adc449f773836d369bd0cb081 (diff) |
tdf#103685: "Commands out of sync" when connecting to MySQL using direct
Thanks to Lionel for his great help
Change-Id: Ifcc1d72cca29c031f31da203cd1e3302ea0ea3e3
Reviewed-on: https://gerrit.libreoffice.org/42688
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
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 3a082004831a..96ab88de79ee 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) @@ -238,9 +238,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() |