From d6855a708cac757127e8d529083402761d1fe2ac Mon Sep 17 00:00:00 2001 From: Javier Fernandez Date: Wed, 22 May 2013 08:56:23 +0000 Subject: Debug info and some API methods implementation. * getTypeInfo * getTables * prepared statements. Change-Id: I549f4a9468b5346e22479363fe0fb81039bc6665 --- dbaccess/source/core/api/FilteredContainer.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'dbaccess/source') diff --git a/dbaccess/source/core/api/FilteredContainer.cxx b/dbaccess/source/core/api/FilteredContainer.cxx index 3f405b27114f..448a405671e6 100644 --- a/dbaccess/source/core/api/FilteredContainer.cxx +++ b/dbaccess/source/core/api/FilteredContainer.cxx @@ -305,9 +305,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 @@ -315,6 +319,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(); @@ -336,6 +342,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 @@ -347,10 +355,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; -- cgit