summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-05-25 15:22:20 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-05-25 16:35:45 +0200
commite4261e4733f795da33fe8e263cf092b509ff7b4b (patch)
treeecaaec58393bdb422ac5c9dd0136d6b5a08f2e99 /connectivity
parentcfc2376f804f13eb562f39182cb24fe7dc61d6ef (diff)
Related tdf#155443: MySQL/MariaDB direct connect, use more of the new function
...getAlterTableColumnPart(). getName() and getTableName() don't deal with database/schema prefix + backticks Change-Id: I31cc9dc98de0449dfe2f6f24305290d4edb9ecb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152276 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_table.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_table.cxx b/connectivity/source/drivers/mysqlc/mysqlc_table.cxx
index aa2bd528e93e..eedcb35d6164 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_table.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_table.cxx
@@ -116,7 +116,7 @@ void SAL_CALL connectivity::mysqlc::Table::alterColumnByName(
// precision, otherwise an exception is thrown -- however the base
// gui then offers to delete and recreate the column.
OUStringBuffer sSql(300);
- sSql.append("ALTER TABLE `" + getTableName() + "` MODIFY COLUMN `" + rColName + "` "
+ sSql.append(getAlterTableColumnPart() + " MODIFY COLUMN `" + rColName + "` "
+ ::dbtools::createStandardTypePart(rDescriptor, getConnection()));
if (comphelper::getBOOL(rDescriptor->getPropertyValue("IsAutoIncrement")))