Ticket #638 (closed Patch: wontfix)

Opened 5 months ago

Last modified 4 months ago

Database has_operator to support LIKE and SOUNDS LIKE

Reported by: dipunm Owned by: Shadowhand
Priority: minor Milestone:
Component: Core Version: SVN HEAD
Keywords: Cc:

Description

I needed to use the SOUNDS LIKE function so I decided to put the operator in the array key with the field name and use the where function. For this to work, I had to modify the system\libraries\drivers\Database.php file [line 269] to:

return (bool) preg_match('/[<>!=]|(?:\s+SOUNDS\s+)?\s+LIKE\s*|\sIS(?:\s+NOT\s+)?\b/i', trim($str));

Change History

Changed 5 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to wontfix

SOUNDS LIKE is not a standard SQL operator.

Changed 4 months ago by anonymous

  • milestone deleted

Milestone 2.1.3 deleted

Note: See TracTickets for help on using tickets.