Document that db_like() and Database/Connection::escapeLike() do not work when used with db_query()

Created on 8 June 2011, over 13 years ago
Updated 27 June 2023, over 1 year ago

Document that you cannot use the method \Drupal\Core\Database\Connection::escapeLike() in the query builder methods \Drupal\Core\Database\Connection::query() and \Drupal\Core\Database\Connection::queryRange().
You can only use the method \Drupal\Core\Database\Connection::escapeLike() in the query builder \Drupal\Core\Database\Connection::select().

🐛 Bug report
Status

Fixed

Version

8.0 ⚰️

Component
Database 

Last updated about 4 hours ago

  • Maintained by
  • 🇳🇱Netherlands @daffie
Created by

🇺🇸United States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024