summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-12 10:15:53 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-12 17:20:21 +0100
commit2997e7d253419ae7cd545e9d0a4a5fe205c5a156 (patch)
treebcc2a03f0ea83482fd94a60390683ae3ce863468
parenta1174cd9cb05aa9b70a77cf891c7e8a8fd665e8f (diff)
Add getKeys() using OKeysHelper (firebird-sdbc).
Change-Id: I5a885cec81d9abcd0b1fc18d0dcd98c292999a51
-rw-r--r--connectivity/source/drivers/firebird/Table.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/connectivity/source/drivers/firebird/Table.cxx b/connectivity/source/drivers/firebird/Table.cxx
index fe14352ce5dc..7138916957bc 100644
--- a/connectivity/source/drivers/firebird/Table.cxx
+++ b/connectivity/source/drivers/firebird/Table.cxx
@@ -10,6 +10,8 @@
#include "Columns.hxx"
#include "Table.hxx"
+#include <connectivity/TKeys.hxx>
+
using namespace ::connectivity;
using namespace ::connectivity::firebird;
using namespace ::connectivity::sdbcx;
@@ -50,9 +52,11 @@ OCollection* Table::createColumns(const TStringVector& rNames)
OCollection* Table::createKeys(const TStringVector& rNames)
{
- (void) rNames;
- // TODO: IMPLEMENT ME
- return 0;
+ // TODO: maybe add a wrapper here in case we the OKeysHelper isn't
+ // fully FB compatible.
+ return new OKeysHelper(this,
+ m_rMutex,
+ rNames);
}
OCollection* Table::createIndexes(const TStringVector& rNames)