]> granicus.if.org Git - php/commitdiff
Turn off retrieving the whole error stack
authorAndreas Karajannis <kara@php.net>
Sun, 21 May 2000 08:46:51 +0000 (08:46 +0000)
committerAndreas Karajannis <kara@php.net>
Sun, 21 May 2000 08:46:51 +0000 (08:46 +0000)
ext/odbc/php_odbc.c

index 4445eb2ab670279d92b3e67149218af7e3a65b22..79c533ddcaaf0f223c137e36f64e4955a966bca4 100644 (file)
@@ -468,8 +468,11 @@ void ODBC_SQL_ERROR(HENV henv, HDBC conn, HSTMT stmt, char *func)
        RETCODE rc;
        ODBCLS_FETCH();
 
-       while(henv != SQL_NULL_HENV){
+       /* This leads to an endless loop in many drivers! 
+        *
+          while(henv != SQL_NULL_HENV){
                do {
+        */
                        rc = SQLError(henv, conn, stmt, state,
                            &error, errormsg, sizeof(errormsg)-1, &errormsgsize);
                if (func) {
@@ -479,9 +482,10 @@ void ODBC_SQL_ERROR(HENV henv, HDBC conn, HSTMT stmt, char *func)
                        php_error(E_WARNING, "SQL error: %s, SQL state %s",
                                                    errormsg, state);
                        }
-                       
+       /*              
                } while (SQL_SUCCEEDED(rc));
        }
+       */
 }
 
 void php_odgbc_fetch_attribs(INTERNAL_FUNCTION_PARAMETERS, int mode)