summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2022-01-15 09:29:12 +0100
committerJulien Nabet <serval2412@yahoo.fr>2022-01-15 10:27:53 +0100
commitbe27b6f0bb73128ad4970fc5649c93d546822a84 (patch)
tree7f90bb1e1095952ac8a71edeec78d596d6441945 /connectivity
parent628fedabdd27ad08e9a42f47106864751e493c2c (diff)
Mysql/MariaDB: related:tdf#81430, fix regression drop table
Change-Id: I4b021847cfe855061b862006fbdc4ac36797ee09 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128455 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_tables.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_tables.cxx b/connectivity/source/drivers/mysqlc/mysqlc_tables.cxx
index 9f150009baf0..36fb744ee5cc 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_tables.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_tables.cxx
@@ -202,10 +202,7 @@ void Tables::dropObject(sal_Int32 nPosition, const OUString& sName)
OUString sType;
xTable->getPropertyValue("Type") >>= sType;
- const OUString sQuoteString = m_xMetaData->getIdentifierQuoteString();
-
- m_xMetaData->getConnection()->createStatement()->execute(
- "DROP " + sType + ::dbtools::quoteName(sQuoteString, sName));
+ m_xMetaData->getConnection()->createStatement()->execute("DROP " + sType + " " + sName);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */