Tag: cws_dev300_dba30c User: oj Date: 2008-05-08 07:25:48+0000 Modified: dba/dbaccess/source/core/api/RowSet.cxx
Log: #153835# add extra check for column index 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.156&r2=1.156.6.1 Delta lines: +5 -2 ------------------- --- RowSet.cxx 2008-04-10 12:25:21+0000 1.156 +++ RowSet.cxx 2008-05-08 07:25:46+0000 1.156.6.1 @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: RowSet.cxx,v $ - * $Revision: 1.156 $ + * $Revision: 1.156.6.1 $ * * This file is part of OpenOffice.org. * @@ -2692,6 +2692,9 @@ // TODO: resource if ( m_aCurrentRow.isNull() ) throwSQLException( "Invalid cursor state", SQL_INVALID_CURSOR_STATE, *this ); + + if ( (*m_aCurrentRow)->size() <= columnIndex ) + throwSQLException( "Invalid column index", SQL_INVALID_DESCRIPTOR_INDEX, *this ); // TODO: resource if ( m_nResultSetConcurrency == ResultSetConcurrency::READ_ONLY) throwSQLException( "Result set is not writeable", SQL_GENERAL_ERROR, *this ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
