Welcome Guest, Not a member yet? Register   Sign In
$this->db->query question
#1

[eluser]Unknown[/eluser]
Hi there,
i have a problem, i use query binding for use procedures, like: $this->db->query("call addSomething(?,?);", array(true, 0));
But i have an problem, because the 'true', and '0' are inside of ' ', and with this mysql detect it like an string and not a boolean and integer...is someway to fix this? Or just have to write manual the params?

Or it's better use mysql convertions?

Best regards,
pjm
#2

[eluser]Aken[/eluser]
Any query bindings are automatically escaped. There is currently no option to disable this. You'll either need to write out the query fully yourself, or choose an Active Record solution if one can be managed for what you need to do.




Theme © iAndrew 2016 - Forum software by © MyBB