From 3a6a9a390be8ea2c084a8de50202628dead4006e Mon Sep 17 00:00:00 2001 From: Axel Hahn Date: Sun, 10 Oct 2021 20:17:09 +0200 Subject: [PATCH] fix for issue 1011 - set PDO type int for double vars --- src/Medoo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Medoo.php b/src/Medoo.php index bfc864b4..c5c31e1b 100644 --- a/src/Medoo.php +++ b/src/Medoo.php @@ -744,7 +744,7 @@ protected function typeMap($value, string $type): array $map = [ 'NULL' => PDO::PARAM_NULL, 'integer' => PDO::PARAM_INT, - 'double' => PDO::PARAM_STR, + 'double' => PDO::PARAM_INT, 'boolean' => PDO::PARAM_BOOL, 'string' => PDO::PARAM_STR, 'object' => PDO::PARAM_STR,