cvs: php4 /ext/odbc/ php_odbc.c

[email protected] ("Andreas Karajannis")
Newsgroups php.version4
Message-ID <cvskara958898811@cvsserver>
kara		Sun May 21 10:46:51 2000 EDT

  Modified files:
    /php4/ext/odbc	php_odbc.c 
  Log:
  Turn off retrieving the whole error stack
  
  
Index: php4/ext/odbc/php_odbc.c
diff -u php4/ext/odbc/php_odbc.c:1.48 php4/ext/odbc/php_odbc.c:1.49
--- php4/ext/odbc/php_odbc.c:1.48	Thu May 18 17:34:31 2000
+++ php4/ext/odbc/php_odbc.c	Sun May 21 10:46:51 2000
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_odbc.c,v 1.48 2000/05/18 15:34:31 zeev Exp $ */
+/* $Id: php_odbc.c,v 1.49 2000/05/21 08:46:51 kara Exp $ */
 
 #if defined(COMPILE_DL) || defined(COMPILE_DL_ODBC)
 #include "dl/phpdl.h"
@@ -468,8 +468,11 @@
 	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 @@
 		    	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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.