Skip to content
Snippets Groups Projects
Commit 8f173831 authored by Angie Byron's avatar Angie Byron
Browse files

#671348 by Garrett Albright: Fixed escape error with SQLite.

parent 9a791353
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
......@@ -155,7 +155,10 @@ public function databaseType() {
public function mapConditionOperator($operator) {
// We don't want to override any of the defaults.
return NULL;
static $specials = array(
'LIKE' => array('postfix' => " ESCAPE '\\'"),
);
return isset($specials[$operator]) ? $specials[$operator] : NULL;
}
public function prepareQuery($query, $cache = TRUE) {
......
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