From 7c64b92665e13c1a09ee197bd36dac015989f00e Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sat, 9 May 2020 13:59:45 +0200 Subject: 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 --- connectivity/source/drivers/mysqlc/mysqlc_statement.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'connectivity/source') 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(); -- cgit