Skip to content

Commit

Permalink
Merge pull request #74 from jessedobbelaere/fix-float-casting-to-int
Browse files Browse the repository at this point in the history
A float should not be using PDO::PARAM_INT
  • Loading branch information
carakas authored Dec 5, 2019
2 parents f0098ab + e656d19 commit 593c206
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spoon/database/database.php
Original file line number Diff line number Diff line change
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 593c206

Please sign in to comment.