diff options
author | Javier Fernandez <jfernandez@igalia.com> | 2013-05-22 08:56:23 +0000 |
---|---|---|
committer | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2013-07-16 16:40:04 +0200 |
commit | d6855a708cac757127e8d529083402761d1fe2ac (patch) | |
tree | c5db0f86466d9fb329895c6a32ec02b0ebac681b /dbaccess | |
parent | Added include and linking directives for building the firebird-sdbc driver. (diff) | |
download | core-d6855a708cac757127e8d529083402761d1fe2ac.tar.gz core-d6855a708cac757127e8d529083402761d1fe2ac.zip |
Debug info and some API methods implementation.
* getTypeInfo
* getTables
* prepared statements.
Change-Id: I549f4a9468b5346e22479363fe0fb81039bc6665
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/FilteredContainer.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
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; |