mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Allow sqlite_fetch_column_types() to properly handle table names with
spaces in them.
This commit is contained in:
parent
a0ff48dbd3
commit
cd7dafab7c
1 changed files with 1 additions and 1 deletions
|
@ -1597,7 +1597,7 @@ PHP_FUNCTION(sqlite_fetch_column_types)
|
|||
DB_FROM_ZVAL(db, &zdb);
|
||||
}
|
||||
|
||||
if (!(sql = sqlite_mprintf("SELECT * FROM %q LIMIT 1", tbl))) {
|
||||
if (!(sql = sqlite_mprintf("SELECT * FROM '%q' LIMIT 1", tbl))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue