Skip to content
Snippets Groups Projects
Commit be38e0c0 authored by Alex Pott's avatar Alex Pott
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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_%',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment