Commit be38e0c0 authored by alexpott's avatar alexpott

Issue #2706201 by edumarbest: Use $this->connection->query instead of db_query...

Issue #2706201 by edumarbest: Use $this->connection->query instead of db_query in \Drupal\Core\Database\Driver\sqlite\Schema::findTables
parent 904b0de0
......@@ -710,7 +710,7 @@ public function findTables($table_expression) {
// Can't use query placeholders for the schema because the query would
// have to be :prefixsqlite_master, which does not work. We also need to
// ignore the internal SQLite tables.
$result = db_query("SELECT name FROM " . $schema . ".sqlite_master WHERE type = :type AND name LIKE :table_name AND name NOT LIKE :pattern", array(
$result = $this->connection->query("SELECT name FROM " . $schema . ".sqlite_master WHERE type = :type AND name LIKE :table_name AND name NOT LIKE :pattern", array(
':type' => 'table',
':table_name' => $table_expression,
':pattern' => 'sqlite_%',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment