diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-25 13:42:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-25 13:42:56 +0000 |
commit | a98905f5c6696ef166ec797fc6ee80fe8f94f48f (patch) | |
tree | 8190afe432c33bf5756340bc432e84cdb5af4a1a /includes/database/sqlite | |
parent | 76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 (diff) | |
download | brdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.gz brdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.bz2 |
- Patch #471800 by stella: more code style fixes.
Diffstat (limited to 'includes/database/sqlite')
-rw-r--r-- | includes/database/sqlite/schema.inc | 2 |
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, )); |