summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird/Driver.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-12 15:44:48 +0100
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-08-12 17:20:22 +0100
commitf400dac5a846007c9bf7529623732670b73c692e (patch)
treed1461a48cf663bcad48d5fe2d370e2e68c88ca3a /connectivity/source/drivers/firebird/Driver.cxx
parent64deb339a97c1977f363fa08fd2b7d9fcfe2e957 (diff)
Enable sdbcx retrieval. (firebird-sdbc)
Note: this completely breaks the GUI editing of a db for now since the sdbcx portion of the driver is still non-functional. Change-Id: Ia4561dae1689fb66c87ac6ab154c02f27ecf211a
Diffstat (limited to 'connectivity/source/drivers/firebird/Driver.cxx')
-rw-r--r--connectivity/source/drivers/firebird/Driver.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index 7be842a3e4fe..41c31d266cb6 100644
--- a/connectivity/source/drivers/firebird/Driver.cxx
+++ b/connectivity/source/drivers/firebird/Driver.cxx
@@ -125,7 +125,7 @@ Reference< XConnection > SAL_CALL FirebirdDriver::connect(
throw DisposedException();
if ( ! acceptsURL(url) )
- return NULL;
+ return NULL; // TODO: throw Exception?
// create a new connection with the given properties and append it to our vector
OConnection* pCon = new OConnection(this);
@@ -171,23 +171,19 @@ sal_Int32 SAL_CALL FirebirdDriver::getMinorVersion( ) throw(RuntimeException)
//----- XDataDefinitionSupplier
uno::Reference< XTablesSupplier > SAL_CALL FirebirdDriver::getDataDefinitionByConnection(
- const uno::Reference< XConnection >& rxConnection)
+ const uno::Reference< XConnection >& rConnection)
throw(SQLException, RuntimeException)
{
- (void) rxConnection;
- // TODO: IMPLEMENT ME
- return 0;
+ return uno::Reference< XTablesSupplier >(rConnection, UNO_QUERY);
}
uno::Reference< XTablesSupplier > SAL_CALL FirebirdDriver::getDataDefinitionByURL(
- const OUString& rsURL,
+ const OUString& rURL,
const uno::Sequence< PropertyValue >& rInfo)
throw(SQLException, RuntimeException)
{
- (void) rsURL;
- (void) rInfo;
- // TODO: IMPLEMENT ME
- return 0;
+ uno::Reference< XConnection > xConnection = connect(rURL, rInfo);
+ return getDataDefinitionByConnection(xConnection);
}
namespace connectivity