Tag: cws_src680_warnings01 User: sb Date: 06/04/07 13:22:48 Modified: /dba/connectivity/source/drivers/mozab/ MResultSet.cxx
Log: RESYNC: (1.23-1.24); FILE MERGED File Changes: Directory: /dba/connectivity/source/drivers/mozab/ ================================================== File [changed]: MResultSet.cxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/MResultSet.cxx?r1=1.22.30.5&r2=1.22.30.6 Delta lines: +7 -7 ------------------- --- MResultSet.cxx 25 Jan 2006 20:57:27 -0000 1.22.30.5 +++ MResultSet.cxx 7 Apr 2006 20:22:46 -0000 1.22.30.6 @@ -396,7 +396,7 @@ // Everything in the addressbook is a string! // if ( !m_aQuery.setRowValue( (*m_aRow)[i], cardNumber, m_aColumnNames[i-1], DataType::VARCHAR )) { - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } } } @@ -437,7 +437,7 @@ // Everything in the addressbook is a string! // if ( !m_aQuery.getRowValue( (*m_aRow)[i], cardNumber, m_aColumnNames[i-1], DataType::VARCHAR )) { - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } } } @@ -1335,7 +1335,7 @@ OSL_TRACE("Query is to be sorted"); if( ! m_aQuery.queryComplete() ) if ( !m_aQuery.waitForQueryComplete() ) { - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } OSL_ENSURE( m_aQuery.queryComplete(), "Query not complete!!"); @@ -1525,7 +1525,7 @@ #endif m_aQuery.checkRowAvailable( nRow ); if ( m_aQuery.errorOccurred() ) { - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } nNumberOfRecords = m_aQuery.getRealRowCount(); } @@ -1625,7 +1625,7 @@ while ( nCurCard > nNumberOfRecords && !m_aQuery.queryComplete() ) { m_aQuery.checkRowAvailable( nCurCard ); if ( m_aQuery.errorOccurred() ) { - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } nNumberOfRecords = m_aQuery.getRealRowCount(); } @@ -1907,7 +1907,7 @@ { m_RowStates = RowStates_Error; m_nUpdatedRow = 0; - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); } m_nUpdatedRow = 0; @@ -1932,7 +1932,7 @@ ,1000,Any()); sal_Bool m_bRowDeleted = ( m_aQuery.deleteRow( nCurrentRow ) > 0 ); if (!m_bRowDeleted) - ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), NULL ); + m_pStatement->getOwnConnection()->throwGenericSQLException( m_aQuery.getErrorResourceId() ); m_aQuery.setRowStates(nCurrentRow,RowStates_Deleted); m_pKeySet->erase(m_pKeySet->begin() + m_nRowPos -1); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
