mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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.
This commit is contained in:
parent
8c57c3a9fe
commit
4854dd71de
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
|
|||
{
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue