Ticket #638 (closed Patch: wontfix)
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
Note: See
TracTickets for help on using
tickets.
