Timeline for Database query where() value is a number
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 25, 2014 at 10:26 | comment | added | Lodder | Thanks for the information FFerwin. I agree, it would be interesting to investigate this. | |
Jul 25, 2014 at 10:25 | vote | accept | Lodder | ||
Jul 25, 2014 at 9:10 | comment | added | Dmitrijs Rekuns |
Agree that it is not actually required to quote an integer. Just typecast: ->where($db->quoteName('id') . ' = ' . (int) $id);
|
|
Jul 24, 2014 at 11:01 | history | answered | FFrewin | CC BY-SA 3.0 |