diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-01-04 19:28:53 +0100 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2019-01-07 10:02:13 +0100 |
commit | 74de1d0051b6dc7392ce482444c4a0ef5376260c (patch) | |
tree | e43bc0e221422a4b71db699d21f2f0fcff2b0e02 /connectivity | |
parent | a87145d3c98fd5aa853ce22b3696189f3d249f04 (diff) |
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@gmail.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |