oysteinkrog / SQLite.Net-PCL

Simple, powerful, cross-platform SQLite client and ORM - Updated version with PCL support
MIT License
353 stars 162 forks source link

Added support for REPLACE-function in WHERE-clause #305

Closed crazyfx1 closed 8 years ago

crazyfx1 commented 8 years ago

If you currently use the .NET-String-Replace in a Where-Clause you receive an error, because this call is translated to Replace("string1", "string2") in SQLite, which is the wrong syntax. This happens because the Replace function is not handled in CompileExpr.

I've added the condition to translate the Replace-Method with the correct call in SQLite.

oysteinkrog commented 8 years ago

Awesome, thanks :)