From 444730a67dbd2ad6cebe666b2cd23c67d5c668f2 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 23 Sep 2017 13:26:58 +0200 Subject: 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 Reviewed-by: Lionel Elie Mamane --- mysqlc/source/mysqlc_statement.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mysqlc') 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() -- cgit