From 3bcb1f3af1004c5bd6feb81ff8c36833f8142d51 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 2 Aug 2004 22:43:42 +0000 Subject: [PATCH] MFH: Allow sqlite_fetch_column_types() to properly handle table names with spaces in them. --- ext/sqlite/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1