From cd7dafab7c199d1482f5eb45b97d714b2dffa821 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 2 Aug 2004 22:43:40 +0000 Subject: [PATCH] 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