kla/php-activerecord — pull request #201 by dfyx (2012-05-11 10:33:56+00:00)
Title: Define REGEXP for sqlite

Sqlite has REGEXP as a reserved keyword but doesn't implement any functionality for it. Instead you have to do it yourself by registring a user defined function named REGEXP().

I've written a rather simple version that tries to mimic the MySQL implementation which automatically inserts delimiters if none are present. I think this should definitly be in php-activerecord to make applications more database-independant.

And before someone asks: no, I haven't written a test for it but I might do later.