Welcome Guest, Not a member yet? Register   Sign In
Query Builder Protect Identifiers Disable
#7

(07-20-2015, 06:43 AM)mwhitney Wrote: I think the point was that he was trying to prevent it from protecting the identifiers in the first place, but the from() method doesn't give you an option to disable this feature, so you can only disable it by setting _protect_identifiers to FALSE, which you've already mentioned should not be done...

I thought it was a bug and I was wrong.  I did not know the alias would allow the ``.  A bad assumption on my end when trying to look for the cause of why a SQL error was happening when _protect_identifers was enabled.  However, I do think that it should be an option to shut it off as a supported feature in the config, OR, disable it on a per query instead of having to pass it on every method call.  Something like


Code:
$this->db->protect_idenifiers(FALSE)->select(...)->where(...)
Reply


Messages In This Thread
RE: Query Builder Protect Identifiers Disable - by zepernick - 07-20-2015, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB