Commit f4069816 authored by Jim Cottrell's avatar Jim Cottrell

Fix Statement class passing bound parameter objects to SQL logger without type...

Fix Statement class passing bound parameter objects to SQL logger without type information: save parameter's converted value
parent 394f7e9a
......@@ -91,6 +91,7 @@ class Statement implements \IteratorAggregate, DriverStatement
}
if ($type instanceof Type) {
$value = $type->convertToDatabaseValue($value, $this->platform);
$this->params[$name] = $value;
$bindingType = $type->getBindingType();
} else {
$bindingType = $type; // PDO::PARAM_* constants
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment