connectivity/source/drivers/mysqlc/mysqlc_table.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8e4c2af59ad4901842b831c3e220411995b964a1 Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Thu May 25 15:22:20 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri May 26 13:37:20 2023 +0200 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 <serval2...@yahoo.fr> Tested-by: Jenkins (cherry picked from commit a04e0a9cca20d934a80fb6af6647b9a5dc7887dd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152222 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> 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")))