]> git.sur5r.net Git - openldap/commitdiff
make the message one-line
authorPierangelo Masarati <ando@openldap.org>
Sat, 17 Dec 2005 00:41:17 +0000 (00:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 17 Dec 2005 00:41:17 +0000 (00:41 +0000)
servers/slapd/back-sql/sql-wrap.c

index 343b47e3aa7f1a94f655668a77b2d2bf086318ff..7176d0dc4bafba44bd2627cc68e9ca8733e4dd6a 100644 (file)
@@ -48,12 +48,11 @@ backsql_PrintErrors( SQLHENV henv, SQLHDBC hdbc, SQLHSTMT sth, int rc )
        Debug( LDAP_DEBUG_TRACE, "Return code: %d\n", rc, 0, 0 );
 
        for ( ; rc = SQLError( henv, hdbc, sth, state, &iSqlCode, msg,
-                       SQL_MAX_MESSAGE_LENGTH - 1, &len ), BACKSQL_SUCCESS( rc ); ) {
+               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 );
+                       "   nativeErrCode=%d SQLengineState=%s msg=\"%s\"\n",
+                       (int)iSqlCode, state, msg );
        }
 }