summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-15 22:14:17 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-02-15 22:14:17 +0000
commitefb4ec06a5aa0bcb22237ef10d6bc6e2f1cc2ff3 (patch)
tree7dcd054197efb079cc447085e0936d325c68e069 /includes
parente4373460c53bd35701c23ac9ca447b0190612427 (diff)
downloadbrdo-efb4ec06a5aa0bcb22237ef10d6bc6e2f1cc2ff3.tar.gz
brdo-efb4ec06a5aa0bcb22237ef10d6bc6e2f1cc2ff3.tar.bz2
#714994 by Damien Tournoud: Fixed SQLite should not forcefully convert numeric strings into numbers.
Diffstat (limited to 'includes')
-rw-r--r--includes/database/sqlite/database.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/database/sqlite/database.inc b/includes/database/sqlite/database.inc
index 17d9034a9..af20b10be 100644
--- a/includes/database/sqlite/database.inc
+++ b/includes/database/sqlite/database.inc
@@ -229,7 +229,7 @@ class DatabaseStatement_sqlite extends DatabaseStatementPrefetch implements Iter
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.