Skip to content

Fix #79664: PDOStatement::getColumnMeta fails on empty result set - #5654

Closed
cmb69 wants to merge 1 commit into
php:PHP-7.3from
cmb69:cmb/79664
Closed

Fix #79664: PDOStatement::getColumnMeta fails on empty result set#5654
cmb69 wants to merge 1 commit into
php:PHP-7.3from
cmb69:cmb/79664

Conversation

@cmb69

@cmb69 cmb69 commented Jun 2, 2020

Copy link
Copy Markdown
Member

As its name suggests, sqlite3_data_count returns the number of
columns in the current row of the result set; we are interested in the
number of columns regardless of the current row, so we have to use
sqlite3_column_count instead.

As its name suggests, `sqlite3_data_count` returns the number of
columns in the current row of the result set; we are interested in the
number of columns regardless of the current row, so we have to use
`sqlite3_column_count` instead.
@cmb69

cmb69 commented Jun 2, 2020

Copy link
Copy Markdown
Member Author

Thanks! Applied as 63bd8f3.

@cmb69 cmb69 closed this Jun 2, 2020
@cmb69
cmb69 deleted the cmb/79664 branch June 2, 2020 08:49
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Sep 29, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Sep 30, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Oct 1, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Oct 1, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Oct 1, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Oct 29, 2025
JanJakes added a commit to WordPress/sqlite-database-integration that referenced this pull request Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 participants