How to avoid the string conversion |
[eluser]ReyPM[/eluser]
Hi, I've this code: Code: public function get_received() { Quote:A Database Error OccurredBecause automatically convert the 1 to '1' meaning convert from INT to STRING and I don't want that, how to avoid this behaviour? Cheers
[eluser]Stefan Hueg[/eluser]
I've answered this question here: http://ellislab.com/forums/viewthread/216302/
[eluser]ReyPM[/eluser]
Hmm thx but for me that solution shouldn't work because I need the JOIN
[eluser]Stefan Hueg[/eluser]
Well then write the SQL Query on your own and escape the variables safely. There is no simple solution without having to rewrite parts of the source code. |
Welcome Guest, Not a member yet? Register Sign In |