You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
WPDB exposes a get_col_info() method that retrieves column metadata from the last query using mysqli_num_fields and mysqli_fetch_field.
PDO statement provides analogous methods columnCount and getColumnMeta, but in the case of the SQLite driver, we may sometimes execute multiple queries for a single MySQL query, so the column info may need to be reconstructed more manually in some cases.
It may also happen that the returned column info needs to be "translated" from SQLite data to MySQL data using the information stored in the information_schema tables.
This also relates to #7 regarding how the column info should be exposed.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
WPDB exposes a get_col_info() method that retrieves column metadata from the last query using
mysqli_num_fields
andmysqli_fetch_field
.PDO statement provides analogous methods columnCount and getColumnMeta, but in the case of the SQLite driver, we may sometimes execute multiple queries for a single MySQL query, so the column info may need to be reconstructed more manually in some cases.
It may also happen that the returned column info needs to be "translated" from SQLite data to MySQL data using the information stored in the
information_schema
tables.This also relates to #7 regarding how the column info should be exposed.
The text was updated successfully, but these errors were encountered: