Kaydet (Commit) d7dd4bbf authored tarafından Julien Nabet's avatar Julien Nabet

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

Change-Id: I1d8f2b0b361f8fd90f3065c07b3224894a3700d6
üst 35a01cb8
......@@ -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)
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment