From efb4ec06a5aa0bcb22237ef10d6bc6e2f1cc2ff3 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 15 Feb 2010 22:14:17 +0000 Subject: #714994 by Damien Tournoud: Fixed SQLite should not forcefully convert numeric strings into numbers. --- includes/database/sqlite/database.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/database/sqlite') 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. -- cgit v1.2.3