Bugzilla::DB::Pg - Bugzilla database compatibility layer for PostgreSQL
This module overrides methods of the Bugzilla::DB module with PostgreSQL specific implementation. It is instantiated by the Bugzilla::DB module and should never be used directly.
For interface details see Bugzilla::DB and DBI.
sql_like_escape
The postgres versions of the sql_like methods use the ANSI SQL LIKE statements to perform substring searching. To prevent issues with users attempting to search for strings containing special characters associated with LIKE, we escape them out so they don't affect the search terms.
$fragment
- The string fragment in need of escaping and quotingThe fragment with any pre existing %,_,| characters escaped out, wrapped in percent characters and quoted.