[Libreoffice-commits] core.git: connectivity/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 7 09:02:34 UTC 2019


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

New commits:
commit 74de1d0051b6dc7392ce482444c4a0ef5376260c
Author:     Tamas Bunth <tamas.bunth at collabora.co.uk>
AuthorDate: Fri Jan 4 19:28:53 2019 +0100
Commit:     Tamás Bunth <btomi96 at gmail.com>
CommitDate: Mon Jan 7 10:02:13 2019 +0100

    tdf#122437 mysqlc: fix foreign key name query
    
    Correct query of the foreign key constraint name is required for
    dropping foreign keys.
    
    Change-Id: Id98b0672ec5a8a06039667a06cb0afd97b3ee205
    Reviewed-on: https://gerrit.libreoffice.org/65861
    Tested-by: Jenkins
    Reviewed-by: Tamás Bunth <btomi96 at gmail.com>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index 0da41f5922ea..3faf928cfcdb 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -952,7 +952,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getImportedKeys(const Any& /*c
         // delete rule
         aRow.push_back(makeAny(xRow->getShort(8)));
         // foreign key name
-        aRow.push_back(makeAny(xRow->getShort(9)));
+        aRow.push_back(makeAny(xRow->getString(9)));
         // primary key name
         aRow.push_back(makeAny(OUString{})); // TODO
         // deferrability


More information about the Libreoffice-commits mailing list