diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-06-01 00:20:14 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2014-06-03 01:38:16 +0000 |
commit | ee38fa4ff5234b6b2342b330b39f5f456ee4a68c (patch) | |
tree | ef34e393373ed889ca5a03579dcb9f46500ab5bd /connectivity | |
parent | b7b3035ff14ba78ee193a0d5e83c9b028bf06b84 (diff) |
Resolves: fdo#79493 Refresh Tables option fails with Firebird
Comparing with hsqldb part, sdbcx::OCollection link wasn't present in Tables constructor
Also include Catalog.hxx to be able to call "refreshTables" method
Cherry-picked from d7dd4bbf0a54cc780002052a370f835572035f51
Change-Id: I1d8f2b0b361f8fd90f3065c07b3224894a3700d6
Reviewed-on: https://gerrit.libreoffice.org/9600
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/firebird/Tables.cxx | 16 | ||||
-rw-r--r-- | connectivity/source/drivers/firebird/Tables.hxx | 5 |
2 files changed, 3 insertions, 18 deletions
diff --git a/connectivity/source/drivers/firebird/Tables.cxx b/connectivity/source/drivers/firebird/Tables.cxx index 70e32725d045..eea298707e44 100644 --- a/connectivity/source/drivers/firebird/Tables.cxx +++ b/connectivity/source/drivers/firebird/Tables.cxx @@ -9,6 +9,7 @@ #include "Table.hxx" #include "Tables.hxx" +#include "Catalog.hxx" #include <connectivity/dbtools.hxx> @@ -29,24 +30,11 @@ using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::uno; -Tables::Tables(const uno::Reference< XDatabaseMetaData >& rMetaData, - OWeakObject& rParent, - Mutex& rMutex, - TStringVector& rNames) : - OCollection(rParent, - true, - rMutex, - rNames), - m_rMutex(rMutex), - m_xMetaData(rMetaData) -{ -} - //----- OCollection ----------------------------------------------------------- void Tables::impl_refresh() throw(RuntimeException) { - // TODO: IMPLEMENT ME + static_cast<Catalog&>(m_rParent).refreshTables(); } ObjectType Tables::createObject(const OUString& rName) diff --git a/connectivity/source/drivers/firebird/Tables.hxx b/connectivity/source/drivers/firebird/Tables.hxx index 3d5f696bb7b0..df66e607a917 100644 --- a/connectivity/source/drivers/firebird/Tables.hxx +++ b/connectivity/source/drivers/firebird/Tables.hxx @@ -25,9 +25,6 @@ namespace connectivity */ class Tables: public ::connectivity::sdbcx::OCollection { - private: - ::osl::Mutex& m_rMutex; - protected: ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData > m_xMetaData; @@ -47,7 +44,7 @@ namespace connectivity Tables(const ::com::sun::star::uno::Reference< ::com::sun::star::sdbc::XDatabaseMetaData >& rMetaData, ::cppu::OWeakObject& rParent, ::osl::Mutex& rMutex, - ::connectivity::TStringVector& rNames); + ::connectivity::TStringVector& rNames) : sdbcx::OCollection(rParent, true, rMutex, rNames), m_xMetaData(rMetaData) {} // TODO: we should also implement XDataDescriptorFactory, XRefreshable, // XAppend, etc., but all are optional. |