User: obo     
Date: 06/03/29 04:18:06

Modified:
 /dba/connectivity/source/drivers/mozab/
  MResultSet.cxx

Log:
 INTEGRATION: CWS dba203a (1.23.42); FILE MERGED
 2006/03/17 15:37:56 fs 1.23.42.1: #i60163# localized error messages

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.23&r2=1.24
Delta lines:  +7 -7
-------------------
--- MResultSet.cxx      21 Dec 2005 13:17:05 -0000      1.23
+++ MResultSet.cxx      29 Mar 2006 12:18:03 -0000      1.24
@@ -395,7 +395,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() );
             }
         }
     }
@@ -436,7 +436,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() );
             }
         }
     }
@@ -1336,7 +1336,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!!");
@@ -1523,7 +1523,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();
     }
@@ -1623,7 +1623,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();
     }
@@ -1905,7 +1905,7 @@
        {
                m_RowStates = RowStates_Error;
                m_nUpdatedRow = 0;
-               ::dbtools::throwGenericSQLException( m_aQuery.getErrorString(), 
NULL );
+        m_pStatement->getOwnConnection()->throwGenericSQLException( 
m_aQuery.getErrorResourceId() );
        }
        
        m_nUpdatedRow = 0;
@@ -1930,7 +1930,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]

Reply via email to