From: Ilia Alshanetsky Date: Mon, 2 Aug 2004 22:43:42 +0000 (+0000) Subject: MFH: Allow sqlite_fetch_column_types() to properly handle table names with X-Git-Tag: php-5.0.1RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bcb1f3af1004c5bd6feb81ff8c36833f8142d51;p=php MFH: Allow sqlite_fetch_column_types() to properly handle table names with spaces in them. --- 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; }