summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r--ext/sqlite/sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c
index fee732b0a6..9fc3ec860e 100644
--- a/ext/sqlite/sqlite.c
+++ b/ext/sqlite/sqlite.c
@@ -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;
}