diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2020-05-09 15:34:42 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2020-05-10 00:13:05 +0200 |
commit | 2c3fdd1236fc22c5d2688f728e58818984b22298 (patch) | |
tree | 0f533670a96e0498a6f870de4f63f03b7f595fe5 | |
parent | 86c86719782243275b65f1f7f2cfdcc0e56c8cd4 (diff) |
mysql-sdbc: do not lie about supporting XPreparedBatchExecution
Change-Id: I85220307566f04640965f048ee0b5c5c4e552bdb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93863
Tested-by: Jenkins
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx | 26 | ||||
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx | 10 |
2 files changed, 19 insertions, 17 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx index 8c9ec1d250db..2b344843deb2 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.cxx @@ -534,18 +534,20 @@ void SAL_CALL OPreparedStatement::clearParameters() } } -void SAL_CALL OPreparedStatement::clearBatch() -{ - mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", - *this); -} - -void SAL_CALL OPreparedStatement::addBatch() -{ - mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this); -} - -Sequence<sal_Int32> SAL_CALL OPreparedStatement::executeBatch() { return Sequence<sal_Int32>(); } +// void SAL_CALL OPreparedStatement::clearBatch() +// { +// mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::clearBatch", +// *this); +// } + +// void SAL_CALL OPreparedStatement::addBatch() +// { +// mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::addBatch", *this); +// } + +// Sequence<sal_Int32> SAL_CALL OPreparedStatement::executeBatch() { +// mysqlc_sdbc_driver::throwFeatureNotImplementedException("OPreparedStatement::executeBatch", *this); +// } void OPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const Any& rValue) { diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx index f488e285bc41..3c4edaf411ac 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx @@ -27,6 +27,7 @@ #include <com/sun/star/sdbc/XResultSetMetaDataSupplier.hpp> #include <com/sun/star/sdbc/XPreparedBatchExecution.hpp> #include <com/sun/star/io/XInputStream.hpp> +#include <cppuhelper/compbase4.hxx> namespace connectivity { @@ -52,8 +53,7 @@ struct BindMetaData my_bool error = false; }; -typedef ::cppu::ImplHelper5<css::sdbc::XPreparedStatement, css::sdbc::XParameters, - css::sdbc::XPreparedBatchExecution, +typedef ::cppu::ImplHelper4<css::sdbc::XPreparedStatement, css::sdbc::XParameters, css::sdbc::XResultSetMetaDataSupplier, css::lang::XServiceInfo> OPreparedStatement_BASE; @@ -149,9 +149,9 @@ public: void SAL_CALL clearParameters() override; // XPreparedBatchExecution - void SAL_CALL addBatch() override; - void SAL_CALL clearBatch() override; - css::uno::Sequence<sal_Int32> SAL_CALL executeBatch() override; + // void SAL_CALL addBatch() override; + // void SAL_CALL clearBatch() override; + // css::uno::Sequence<sal_Int32> SAL_CALL executeBatch() override; // XCloseable void SAL_CALL close() override; |