diff options
| author | Georg Richter <georg@php.net> | 2003-12-22 17:00:54 +0000 |
|---|---|---|
| committer | Georg Richter <georg@php.net> | 2003-12-22 17:00:54 +0000 |
| commit | 5bf9b63c5b91a1b7454fc969624ca1a63540bbb7 (patch) | |
| tree | 40d822ea1404c989e464bf71f82be641574b2e72 /ext/mysqli/mysqli_report.c | |
| parent | ba7d400fa1196059b5b99ff38756c9e680a25193 (diff) | |
| download | php-git-5bf9b63c5b91a1b7454fc969624ca1a63540bbb7.tar.gz | |
beautifying :)
Diffstat (limited to 'ext/mysqli/mysqli_report.c')
| -rw-r--r-- | ext/mysqli/mysqli_report.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mysqli/mysqli_report.c b/ext/mysqli/mysqli_report.c index 6a31aa5e33..1412624573 100644 --- a/ext/mysqli/mysqli_report.c +++ b/ext/mysqli/mysqli_report.c @@ -59,9 +59,9 @@ void php_mysqli_report_error(char *sqlstate, int errorno, char *error TSRMLS_DC) /* {{{ void php_mysqli_report_index() */ void php_mysqli_report_index(char *query, unsigned int status TSRMLS_DC) { +#if MYSQL_VERSION_ID > 40101 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) { @@ -69,11 +69,10 @@ void php_mysqli_report_index(char *query, unsigned int status TSRMLS_DC) { } else { return; } + php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s used in query %s", index, query); #else return; #endif - - php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s used in query %s", index, query); } /* }}} */ |
