From a98905f5c6696ef166ec797fc6ee80fe8f94f48f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 May 2009 13:42:56 +0000 Subject: - Patch #471800 by stella: more code style fixes. --- includes/database/sqlite/schema.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes/database/sqlite') 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, )); -- cgit v1.2.3