mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Turn off retrieving the whole error stack
This commit is contained in:
parent
2936860d24
commit
11f4909068
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user