Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Unexpected generated SQL when using Mysql REPLACE function with AR #103
Expected result would be that dot (.) is replaced with comma (,). But due to way that select method builds the sql, it will add extra space after comma and the result is "15, 50" instead of "15,50" for example.
The extra space is added in *system/database/DB_active_rec.php * method: _compile_select():
// Line 1721
Offcourse filtering is usually done with PHP, but this came across when developing a new library which you can define the filtering straight with mysql.