summaryrefslogtreecommitdiff
path: root/includes/database/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'includes/database/sqlite')
-rw-r--r--includes/database/sqlite/schema.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/database/sqlite/schema.inc b/includes/database/sqlite/schema.inc
index 137592bbf..834a93037 100644
--- a/includes/database/sqlite/schema.inc
+++ b/includes/database/sqlite/schema.inc
@@ -15,6 +15,7 @@
class DatabaseSchema_sqlite extends DatabaseSchema {
public function tableExists($table) {
+ // Don't use {} around sqlite_master table.
return (bool) $this->connection->query("SELECT name FROM sqlite_master WHERE type = 'table' AND name LIKE '{" . $table . "}'", array(), array())->fetchField();
}
@@ -564,6 +565,7 @@ class DatabaseSchema_sqlite extends DatabaseSchema {
* Array, both the keys and the values are the matching tables.
*/
public function findTables($table_expression) {
+ // Don't use {} around sqlite_master table.
$result = db_query("SELECT name FROM sqlite_master WHERE name LIKE :table_name", array(
':table_name' => $table_expression,
));