diff --git a/src/NativeQuery.php b/src/NativeQuery.php index aa44539d54..2c46e81af9 100644 --- a/src/NativeQuery.php +++ b/src/NativeQuery.php @@ -51,6 +51,14 @@ protected function _doExecute() foreach ($this->getParameters() as $parameter) { $name = $parameter->getName(); + + if ($parameter->typeWasSpecified()) { + $parameters[$name] = $parameter->getValue(); + $types[$name] = $parameter->getType(); + + continue; + } + $value = $this->processParameterValue($parameter->getValue()); $type = $parameter->getValue() === $value ? $parameter->getType()