Fix bug in sqlite3-table-info where it was not using database-identifiers
authorRuss Tyndall <russ@acceleration.net>
Tue, 7 Jan 2014 20:53:02 +0000 (15:53 -0500)
committerRuss Tyndall <russ@acceleration.net>
Tue, 7 Jan 2014 20:53:02 +0000 (15:53 -0500)
db-sqlite3/sqlite3-sql.lisp

index 7b16b48..d4b41e4 100644 (file)
 
 (declaim (inline sqlite3-table-info))
 (defun sqlite3-table-info (table database)
-  (database-query (format nil "PRAGMA table_info('~A')" table)
-                  database nil nil))
+  (let ((sql (format nil "PRAGMA table_info('~A')"
+                     (clsql-sys::unescaped-database-identifier table))))
+    (database-query sql database nil nil)))
 
 (defmethod database-list-attributes (table (database sqlite3-database)
                                            &key (owner nil))