summaryrefslogtreecommitdiff
path: root/ext/sqlite/sqlite.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-08-02 22:43:40 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-08-02 22:43:40 +0000
commitcd7dafab7c199d1482f5eb45b97d714b2dffa821 (patch)
treecb81d981fbd26d8e8d25b63eefdd233cbec85c51 /ext/sqlite/sqlite.c
parenta0ff48dbd37dec36eead9317aaa7e5290e07d2f1 (diff)
downloadphp-git-cd7dafab7c199d1482f5eb45b97d714b2dffa821.tar.gz
Allow sqlite_fetch_column_types() to properly handle table names with
spaces in them.
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;
}