diff options
author | Ocke Janssen <oj@openoffice.org> | 2002-12-12 09:45:02 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2002-12-12 09:45:02 +0000 |
commit | 9a363c9a92a4a6cdbdcfb471149623cf062e6d50 (patch) | |
tree | 833102a63dba10af11e6171f3513fc9286986bc6 /connectivity | |
parent | 96b0694395e2771db008d85923b2b5d812abdacf (diff) |
#106123# debug info for resultset
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbtools2.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 83a978f50838..201e4556d1b7 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbtools2.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: oj $ $Date: 2002-11-15 08:59:53 $ + * last change: $Author: oj $ $Date: 2002-12-12 10:45:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -582,6 +582,21 @@ sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData, static const ::rtl::OUString sREFERENCE = ::rtl::OUString::createFromAscii("REFERENCE"); static const ::rtl::OUString sDROP = ::rtl::OUString::createFromAscii("DROP"); // after creation the set is positioned before the first record, per definitionem +#ifdef DBG_UTIL + Reference< XResultSetMetaDataSupplier > xSup(xPrivileges,UNO_QUERY); + if ( xSup.is() ) + { + Reference< XResultSetMetaData > xRsMetaData = xSup->getMetaData(); + if ( xRsMetaData.is() ) + { + sal_Int32 nCount = xRsMetaData->getColumnCount(); + for (sal_Int32 i=1; i<=nCount; ++i) + { + ::rtl::OUString sColumnName = xRsMetaData->getColumnName(i); + } + } + } +#endif ::rtl::OUString sPrivilege, sGrantee; while ( xPrivileges->next() ) |