From: Zak Greant Date: Wed, 8 May 2002 07:38:09 +0000 (+0000) Subject: Minor improvement to error message for mysql_data_seek X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4128739695ec78b7d4416c1a0cd8134d83cf3506;p=php Minor improvement to error message for mysql_data_seek --- diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 424b70282d..da12b4091a 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -1880,7 +1880,7 @@ PHP_FUNCTION(mysql_data_seek) convert_to_long_ex(offset); if (Z_LVAL_PP(offset)<0 || Z_LVAL_PP(offset)>=(int)mysql_num_rows(mysql_result)) { - php_error(E_WARNING, "Offset %d is invalid for MySQL result index %d", Z_LVAL_PP(offset), Z_LVAL_PP(result)); + php_error(E_WARNING, "Offset %d is invalid for MySQL result index %d (or the query data is unbuffered)", Z_LVAL_PP(offset), Z_LVAL_PP(result)); RETURN_FALSE; } mysql_data_seek(mysql_result, Z_LVAL_PP(offset));