summaryrefslogtreecommitdiff
path: root/dbaccess/source/core/api/FilteredContainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/core/api/FilteredContainer.cxx')
-rw-r--r--dbaccess/source/core/api/FilteredContainer.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/dbaccess/source/core/api/FilteredContainer.cxx b/dbaccess/source/core/api/FilteredContainer.cxx
index 629bb8576652..f4ed161722e8 100644
--- a/dbaccess/source/core/api/FilteredContainer.cxx
+++ b/dbaccess/source/core/api/FilteredContainer.cxx
@@ -306,9 +306,13 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
try
{
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ getting metadata ... \n");
+
Reference< XConnection > xCon( m_xConnection, UNO_SET_THROW );
m_xMetaData.set( xCon->getMetaData(), UNO_SET_THROW );
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ metadata got \n");
+
// create a table table filter suitable for the XDatabaseMetaData::getTables call,
// taking into account both the externally-provided table type filter, and any
// table type restriction which is inherent to the container
@@ -316,6 +320,8 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
OUString sInherentTableTypeRestriction( getTableTypeRestriction() );
if ( !sInherentTableTypeRestriction.isEmpty() )
{
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ NOT InherentTableTypeRestriction \n");
+
if ( _rTableTypeFilter.getLength() != 0 )
{
const OUString* tableType = _rTableTypeFilter.getConstArray();
@@ -337,6 +343,8 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
}
else
{
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ InherentTableTypeRestriction \n");
+
// no container-inherent restriction for the table types
if ( _rTableTypeFilter.getLength() == 0 )
{ // no externally-provided table type filter => use the default filter
@@ -348,10 +356,14 @@ sal_Int32 createWildCardVector(Sequence< OUString >& _rTableFilter, ::std::vecto
}
}
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ getting tables ... \n");
+
static const OUString sAll("%");
Reference< XResultSet > xTables = m_xMetaData->getTables( Any(), sAll, sAll, aTableTypeFilter );
Reference< XRow > xCurrentRow( xTables, UNO_QUERY_THROW );
+ printf ("DEBUG !!! __ OFilteredContainer::construct __ tables got \n");
+
TableInfos aUnfilteredTables;
OUString sCatalog, sSchema, sName, sType;