epiphany
epiphany copied to clipboard
Set PDO ATTR_EMULATE_PREPARES to false.
This stops PDO from adding single quotes around integer values. See bug here: https://bugs.php.net/bug.php?id=44639
Thanks for the PR. I'm not familiar with ATTR_EMULATE_PREPARES
but it sounds like it might make sense to include it (optionally or by default - unsure which).
Here's a thread on the topic, http://stackoverflow.com/a/10455228/1318758