[Libreoffice-bugs] [Bug 112423] MySQL native connector "Commands out of sync..." when calling procedure second time. - Crash
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 26 15:07:04 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=112423
--- Comment #21 from Julien Nabet <serval2412 at yahoo.fr> ---
Lionel: just an hypothesis, since Robert uses the old extension perhaps this
part doesn't work for him:
--- 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();
}
Of course, these methods are called from a try/catch but are the catches
sufficient to deal with the lack of one (or both) of these methods in the
extension?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170926/c467dd80/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list