Welcome Guest, Not a member yet? Register   Sign In
Active Record - having not applying quotes to strings properly
#3

[eluser]darkhouse[/eluser]
I haven't looked into it since. I think the reason it's not done that way is due to the fact that HAVING statements often use aggregates. There is an easy way around it though without modifying the source. Just throw a FALSE in the 3rd paramater of $this->db->having('end_date >=', "'".date('Y-m-d).'", FALSE); and that will give you the quotes around your date and not escape them.

Maybe I'll follow up with Phil and see what he thinks about the initial issue.


Messages In This Thread
Active Record - having not applying quotes to strings properly - by El Forum - 07-23-2011, 08:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB