Welcome Guest, Not a member yet? Register   Sign In
[CI 1.6] Active Records : Backticks gone crazy ?
#2

[eluser]Alex007[/eluser]
Well, I am an idiot and I should re-read the userguid more often:
Quote:$this->Db->select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.

Edit: It works, but it's still weird that AR automatically backticked CASE and ELSE but didn't backtick the words WHEN and THEN...


Messages In This Thread
[CI 1.6] Active Records : Backticks gone crazy ? - by El Forum - 01-31-2008, 09:59 AM
[CI 1.6] Active Records : Backticks gone crazy ? - by El Forum - 01-31-2008, 10:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB