cvs: php-src /ext/mysqli mysqli_report.c

From: Date: Mon, 22 Dec 2003 16:56:15 +0000
Subject: cvs: php-src /ext/mysqli mysqli_report.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25378@lists.php.net to get a copy of this message
georg Mon Dec 22 11:56:15 2003 EDT Modified files: /php-src/ext/mysqli mysqli_report.c Log: fixed bug #26680 Index: php-src/ext/mysqli/mysqli_report.c diff -u php-src/ext/mysqli/mysqli_report.c:1.2 php-src/ext/mysqli/mysqli_report.c:1.3 --- php-src/ext/mysqli/mysqli_report.c:1.2 Sat Dec 13 08:44:56 2003 +++ php-src/ext/mysqli/mysqli_report.c Mon Dec 22 11:56:14 2003 @@ -15,7 +15,7 @@ | Author: Georg Richter <georg@php.net> | +----------------------------------------------------------------------+ - $Id: mysqli_report.c,v 1.2 2003/12/13 13:44:56 helly Exp $ + $Id: mysqli_report.c,v 1.3 2003/12/22 16:56:14 georg Exp $ */ #ifdef HAVE_CONFIG_H @@ -61,6 +61,7 @@ void php_mysqli_report_index(char *query, unsigned int status TSRMLS_DC) { char index[15]; +#if MYSQL_VERSION_ID > 40101 if (status & SERVER_QUERY_NO_GOOD_INDEX_USED) { strcpy(index, "Bad index"); } else if (status & SERVER_QUERY_NO_INDEX_USED) { @@ -68,6 +69,9 @@ } else { return; } +#else + return; +#endif php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s used in query %s", index, query); }

« previous php.cvs (#25378) next »