mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFH Add table key to getColumnMeta() with SQLite
This commit is contained in:
parent
fc044adb9f
commit
efaba65cf5
4 changed files with 37 additions and 2 deletions
|
@ -323,6 +323,13 @@ static int pdo_sqlite_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_v
|
|||
add_assoc_string(return_value, "sqlite:decl_type", str, 1);
|
||||
}
|
||||
|
||||
#ifdef SQLITE_ENABLE_COLUMN_METADATA
|
||||
str = sqlite3_column_table_name(S->stmt, colno);
|
||||
if (str) {
|
||||
add_assoc_string(return_value, "table", str, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
add_assoc_zval(return_value, "flags", flags);
|
||||
|
||||
return SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue