Welcome Guest, Not a member yet? Register   Sign In
Active record and ORDER BY CASE
#1

[eluser]pierlooqup[/eluser]
Hello,

I've just found out that the active record class will escape my ORDER BY CASE col WHEN val THEN 1 ELSE -1 statement
ie. CASE becomes 'CASE' and the query fails.

Is this on purpose? any way i can get around this?
thanks




Theme © iAndrew 2016 - Forum software by © MyBB