connectivity/source/drivers/mysqlc/mysqlc_table.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e4261e4733f795da33fe8e263cf092b509ff7b4b
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Thu May 25 15:22:20 2023 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Thu May 25 16:35:45 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

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")))

Reply via email to