Tag: cws_src680_dba205b User: fs Date: 2006/08/15 06:48:33 Modified: dba/dbaccess/source/core/api/RowSet.cxx
Log: impl_initializeColumnSettings_nothrow: also allow for a TableName at the column which denotes a non-existent table. Happens for instance if the table name is underspecified in the statement (e.g. missing the schema), but still accepted by the server. File Changes: Directory: /dba/dbaccess/source/core/api/ ========================================= File [changed]: RowSet.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSet.cxx?r1=1.145.18.2&r2=1.145.18.3 Delta lines: +6 -2 ------------------- --- RowSet.cxx 4 Aug 2006 07:02:38 -0000 1.145.18.2 +++ RowSet.cxx 15 Aug 2006 13:48:31 -0000 1.145.18.3 @@ -4,9 +4,9 @@ * * $RCSfile: RowSet.cxx,v $ * - * $Revision: 1.145.18.2 $ + * $Revision: 1.145.18.3 $ * - * last change: $Author: fs $ $Date: 2006/08/04 07:02:38 $ + * last change: $Author: fs $ $Date: 2006/08/15 13:48:31 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1768,6 +1768,10 @@ OSL_VERIFY( _rxTemplateColumn->getPropertyValue( PROPERTY_TABLENAME ) >>= sTableName ); Reference< XNameAccess > xTables( impl_getTables_throw(), UNO_QUERY_THROW ); + if ( !xTables->hasByName( sTableName ) ) + // no chance + return; + Reference< XColumnsSupplier > xTableColSup( xTables->getByName( sTableName ), UNO_QUERY_THROW ); Reference< XNameAccess > xTableCols( xTableColSup->getColumns(), UNO_QUERY_THROW ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
