Commit efb4ec06 authored by webchick's avatar webchick

#714994 by Damien Tournoud: Fixed SQLite should not forcefully convert numeric...

#714994 by Damien Tournoud: Fixed SQLite should not forcefully convert numeric strings into numbers.
parent e4373460
......@@ -229,7 +229,7 @@ protected function getStatement($query, &$args = array()) {
else {
// Else, this is using named placeholders.
foreach ($args as $placeholder => $value) {
if (is_numeric($value)) {
if (is_float($value) || is_int($value)) {
// We will remove this placeholder from the query and PDO throws an
// exception if the number of placeholders in the query and the
// arguments does not match.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment