summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-02 17:48:38 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-03 19:41:34 +0100
commit76e6c6f3ea2631b70368865b4d38803c9bc47fd6 (patch)
tree3888ed8dab907508217549774e487dda90c1c03f /connectivity
parent868cd2461580d362c847846f6bb52a381b282b6f (diff)
Add some comments on foreign key retrieval (firebird-sdbc)
These two methods don't seem to be used at all within the LO codebase. They are also extremely complicated to implement hence will be left for later implementation -- my part implementation will be put on the wiki firebird page. Change-Id: I72922a4f3c4705fdcc3bbca140d6df64a1e16253
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/DatabaseMetaData.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
index ef817b7f5fb4..2eabddff0866 100644
--- a/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
+++ b/connectivity/source/drivers/firebird/DatabaseMetaData.cxx
@@ -1463,6 +1463,9 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
+ // List the columns in a table which are foreign keys. This is actually
+ // never used anywhere in the LO codebase currently. Retrieval from firebird
+ // requires using a 5-table join.
SAL_WARN("connectivity.firebird", "Not yet implemented");
(void) catalog;
(void) schema;
@@ -1473,6 +1476,9 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
const Any& catalog, const OUString& schema, const OUString& table ) throw(SQLException, RuntimeException)
{
+ // List the columns in a table (which must be primary key, or possibly just
+ // unique) that are referred to in other foreign keys. Will have a similar
+ // 5-table or so join as in getExportedKeys.
SAL_WARN("connectivity.firebird", "Not yet implemented");
(void) catalog;
(void) schema;