mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-03 05:30:07 -05:00
cleanup error messages and logs
This commit is contained in:
parent
eae82899ca
commit
171a47c05b
1 changed files with 7 additions and 11 deletions
|
|
@ -47,17 +47,13 @@ backsql_PrintErrors( SQLHENV henv, SQLHDBC hdbc, SQLHSTMT sth, int rc )
|
|||
|
||||
Debug( LDAP_DEBUG_TRACE, "Return code: %d\n", rc, 0, 0 );
|
||||
|
||||
|
||||
rc = SQLError( henv, hdbc, sth, state, &iSqlCode, msg,
|
||||
SQL_MAX_MESSAGE_LENGTH - 1, &len );
|
||||
for ( ; BACKSQL_SUCCESS( rc ); ) {
|
||||
Debug( LDAP_DEBUG_TRACE, "Native error code: %d\n",
|
||||
(int)iSqlCode, 0, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "SQL engine state: %s\n",
|
||||
state, 0, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "Message: %s\n", msg, 0, 0 );
|
||||
rc = SQLError( henv, hdbc, sth, state, &iSqlCode, msg,
|
||||
SQL_MAX_MESSAGE_LENGTH - 1, &len );
|
||||
for ( ; rc = SQLError( henv, hdbc, sth, state, &iSqlCode, msg,
|
||||
SQL_MAX_MESSAGE_LENGTH - 1, &len ), BACKSQL_SUCCESS( rc ); ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
" Native error code: %d\n"
|
||||
" SQL engine state: %s\n"
|
||||
" Message: %s\n",
|
||||
(int)iSqlCode, state, msg );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue