[Libreoffice-bugs] [Bug 103685] SQL... dialog Status: "Commands out of sync" when connecting to MySQL using direct (native) connector
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 22 21:46:07 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=103685
--- Comment #12 from Julien Nabet <serval2412 at yahoo.fr> ---
Lionel: Since it seems the cleaning must be in
dbaccess/source/ui/dlg/directsql.cxx so resultsets can be available in
dbaccess/source/core/api/statement.cxx for macros or other things, I'm stuck.
Indeed, I began with:
diff --git a/mysqlc/source/mysqlc_statement.cxx
b/mysqlc/source/mysqlc_statement.cxx
index 3a082004831a..9ff3ce163fb6 100644
--- a/mysqlc/source/mysqlc_statement.cxx
+++ b/mysqlc/source/mysqlc_statement.cxx
@@ -240,7 +240,7 @@ sal_Bool SAL_CALL OCommonStatement::getMoreResults()
// if your driver supports more than only one resultset
// and has one more at this moment return true
- return false;
+ return cppStatement->getMoreResults();
}
but then, I don't know how to call getMoreResults() from directsql.cxx.
I tried to declare OStatement::getMoreResults (because
OStatementBase::getMoreResults already existts) in statement.hxx +
statement.cxx but I've got an error when building.
I think it's perhaps linked to XStatement.idl but don't want to touch this
since it's a public interface and I don't know the consequences.
I also tried to use XMultipleResults but since execute method doesn't return
anything, I can't use XMultipleResults
--
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/20170922/ff9522d3/attachment.html>
More information about the Libreoffice-bugs
mailing list