wez Mon Jul 18 10:40:49 2005 EDT Modified files: /php-src/ext/pdo_sqlite sqlite_statement.c Log: this needs to be the column count, otherwise a db->query() that returns 0 rows will fail rather than returning a statement with no rows. http://cvs.php.net/diff.php/php-src/ext/pdo_sqlite/sqlite_statement.c?r1=1.16&r2=1.17&ty=u Index: php-src/ext/pdo_sqlite/sqlite_statement.c diff -u php-src/ext/pdo_sqlite/sqlite_statement.c:1.16 php-src/ext/pdo_sqlite/sqlite_statement.c:1.17 --- php-src/ext/pdo_sqlite/sqlite_statement.c:1.16 Sat Jul 9 00:37:27 2005 +++ php-src/ext/pdo_sqlite/sqlite_statement.c Mon Jul 18 10:40:49 2005 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sqlite_statement.c,v 1.16 2005/07/09 04:37:27 iliaa Exp $ */ +/* $Id: sqlite_statement.c,v 1.17 2005/07/18 14:40:49 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -165,7 +165,7 @@ { pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data; - if(colno >= sqlite3_data_count(S->stmt)) { + if(colno >= sqlite3_column_count(S->stmt)) { /* error invalid column */ pdo_sqlite_error_stmt(stmt); return 0;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php