diff -ru oracle_odbc_driver/src/SQLRowCount.c oraODBC/src/SQLRowCount.c --- src/SQLRowCount.c 2007-04-06 18:11:25.000000000 +0400 +++ src/SQLRowCount.c 2007-04-06 18:55:56.000000000 +0400 @@ -88,7 +88,13 @@ ood_clear_diag((hgeneric*)stmt); ood_mutex_lock_stmt(stmt); - *RowCountPtr=(SQLINTEGER)abs(stmt->num_result_rows); + if ( NULL == RowCountPtr ) + { +// logPushMsg( hStmt->hLog, __FILE__, __FILE__, __LINE__, LOG_WARNING, LOG_WARNING, "SQL_ERROR pnRowCount can not be NULL" ); + return SQL_ERROR; + } + + *RowCountPtr=(SQLINTEGER)(stmt->num_result_rows); ood_mutex_unlock_stmt(stmt); if(ENABLE_TRACE){