|
|
@ -310,12 +310,13 @@ class Command extends Component |
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$schema = $this->db->getSchema(); |
|
|
|
foreach ($values as $name => $value) { |
|
|
|
foreach ($values as $name => $value) { |
|
|
|
if (is_array($value)) { |
|
|
|
if (is_array($value)) { |
|
|
|
$this->_pendingParams[$name] = $value; |
|
|
|
$this->_pendingParams[$name] = $value; |
|
|
|
$this->params[$name] = $value[0]; |
|
|
|
$this->params[$name] = $value[0]; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$type = $this->db->getSchema()->getPdoType($value); |
|
|
|
$type = $schema->getPdoType($value); |
|
|
|
$this->_pendingParams[$name] = [$value, $type]; |
|
|
|
$this->_pendingParams[$name] = [$value, $type]; |
|
|
|
$this->params[$name] = $value; |
|
|
|
$this->params[$name] = $value; |
|
|
|
} |
|
|
|
} |
|
|
|