Welcome Guest, Not a member yet? Register   Sign In
CI_DB_driver::_protect_identifiers breaks when using table.* select
#4

[eluser]Jameson.[/eluser]
Quote:Just get that second TRUE param in there and you’ll be good.
Well, I don't want to go over all my models and some controllers and shove this TRUE param in all the selects just in case something else breaks suddenly next time. After all, protect function is there for some reason, right?

...And my broken query is similar but different.
Why oh why
SELECT *, DATE_FORMAT(some_date, "%d.%m.%Y")
turns into
SELECT *, DATE_FORMAT(some_date, `"%d`.`%m`.`%Y")`
Funny enough, dots in the request don't necessarily denote database/table/field delimiters.


Messages In This Thread
CI_DB_driver::_protect_identifiers breaks when using table.* select - by El Forum - 11-10-2008, 11:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB