Allow sqlite_fetch_column_types() to properly handle table names with

spaces in them.
This commit is contained in:
Ilia Alshanetsky 2004-08-02 22:43:40 +00:00
parent a0ff48dbd3
commit cd7dafab7c

View file

@ -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;
}