Skip to content
Snippets Groups Projects
Commit cea9f28a authored by Jared Hancock's avatar Jared Hancock
Browse files

orm: Fix handling of bool and float params

parent 188ec7c0
Branches
Tags
No related merge requests found
...@@ -883,8 +883,10 @@ class MysqlExecutor { ...@@ -883,8 +883,10 @@ class MysqlExecutor {
$types = ''; $types = '';
$ps = array(); $ps = array();
foreach ($params as &$p) { foreach ($params as &$p) {
if (is_int($p)) if (is_int($p) || is_bool($p))
$types .= 'i'; $types .= 'i';
elseif (is_float($p))
$types .= 'd';
elseif (is_string($p)) elseif (is_string($p))
$types .= 's'; $types .= 's';
// TODO: Emit error if param is null // TODO: Emit error if param is null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment