summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2020-05-09 13:59:45 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2020-05-09 21:18:13 +0200
commit7c64b92665e13c1a09ee197bd36dac015989f00e (patch)
tree9a9f871e61c780d3ab157eabba2974496b9dc3c1 /connectivity
parentf185b070fd72112a7c4c4b843ee6156c1860ac94 (diff)
mysql-sdbc: statement::execute do not handle parameters
this is not a PreparedStatement, it is not allowed to have parameters Change-Id: I15cd493b89824e4e68eff5a59ac255bf05db0190 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93853 Tested-by: Jenkins Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_statement.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx b/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
index 2301d040511b..c6dab15c4b53 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_statement.cxx
@@ -117,10 +117,8 @@ sal_Bool SAL_CALL OCommonStatement::execute(const OUString& sql)
{
MutexGuard aGuard(m_aMutex);
checkDisposed(rBHelper.bDisposed);
- const OUString sSqlStatement = m_xConnection->transFormPreparedStatement(sql);
- OString toExec
- = OUStringToOString(sSqlStatement, m_xConnection->getConnectionSettings().encoding);
+ OString toExec = OUStringToOString(sql, m_xConnection->getConnectionSettings().encoding);
MYSQL* pMySql = m_xConnection->getMysqlConnection();