• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
$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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.