Turn off retrieving the whole error stack

This commit is contained in:
Andreas Karajannis 2000-05-21 08:46:51 +00:00
parent 2936860d24
commit 11f4909068

View 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)