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

New commits:
commit 74de1d0051b6dc7392ce482444c4a0ef5376260c
Author:     Tamas Bunth <tamas.bu...@collabora.co.uk>
AuthorDate: Fri Jan 4 19:28:53 2019 +0100
Commit:     Tamás Bunth <btom...@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 <btom...@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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to