Skip to content

Commit

Permalink
A float should not be using PDO::PARAM_INT
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedobbelaere committed Dec 2, 2019
1 parent f0098ab commit e656d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spoon/database/database.php
Expand Up @@ -713,7 +713,7 @@ public function getTables()
private function getType($value)
{
if($value === null) return PDO::PARAM_NULL;
elseif(is_int($value) || is_float($value)) return PDO::PARAM_INT;
elseif(is_int($value)) return PDO::PARAM_INT;
return PDO::PARAM_STR;
}

Expand Down

0 comments on commit e656d19

Please sign in to comment.