summaryrefslogtreecommitdiff
path: root/connectivity/source
diff options
context:
space:
mode:
authorTamas Bunth <tamas.bunth@collabora.co.uk>2018-09-12 17:31:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-31 19:58:09 +0200
commitacafd1ac87cb23a447353b8f0419a25fbe1c4430 (patch)
tree4f21ca70806ace836e9edebeabdb546373378e33 /connectivity/source
parentb9b7df5f558eb79533622df5f3390f79a1e5aa79 (diff)
mysqlc: getTablePrivileges not implemented, so..
it should throw an exception. Reviewed-on: https://gerrit.libreoffice.org/60460 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit 19f8ea668833a4dc90244792cbf91881b0ca9a07) Change-Id: I32b0b5dde0bcfd8cc59d0814a9f35d43c0f58ae1 Reviewed-on: https://gerrit.libreoffice.org/76750 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index be8dc496de2e..bca56e119626 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -1046,14 +1046,9 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getBestRowIdentifier(const Any
Reference<XResultSet> SAL_CALL ODatabaseMetaData::getTablePrivileges(
const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*tableNamePattern*/)
{
- Reference<XResultSet> xResultSet(getOwnConnection().getDriver().getFactory()->createInstance(
- "org.openoffice.comp.helper.DatabaseMetaDataResultSet"),
- UNO_QUERY);
- std::vector<std::vector<Any>> rRows;
// TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
- lcl_setRows_throw(xResultSet, 12, rRows);
- return xResultSet;
+ throw SQLException("getTablePrivileges method not implemented", *this, "IM001", 0, Any());
}
Reference<XResultSet> SAL_CALL ODatabaseMetaData::getCrossReference(