lib/Doctrine/DBAL/Statement.php 1 location
|
@@ 113-118 (lines=6) @@
|
110 |
|
if (is_string($type)) { |
111 |
|
$type = Type::getType($type); |
112 |
|
} |
113 |
|
if ($type instanceof Type) { |
114 |
|
$value = $type->convertToDatabaseValue($value, $this->platform); |
115 |
|
$bindingType = $type->getBindingType(); |
116 |
|
} else { |
117 |
|
$bindingType = $type; // PDO::PARAM_* constants |
118 |
|
} |
119 |
|
|
120 |
|
return $this->stmt->bindValue($name, $value, $bindingType); |
121 |
|
} else { |
lib/Doctrine/DBAL/Connection.php 1 location
|
@@ 1585-1590 (lines=6) @@
|
1582 |
|
if (is_string($type)) { |
1583 |
|
$type = Type::getType($type); |
1584 |
|
} |
1585 |
|
if ($type instanceof Type) { |
1586 |
|
$value = $type->convertToDatabaseValue($value, $this->getDatabasePlatform()); |
1587 |
|
$bindingType = $type->getBindingType(); |
1588 |
|
} else { |
1589 |
|
$bindingType = $type; // PDO::PARAM_* constants |
1590 |
|
} |
1591 |
|
|
1592 |
|
return [$value, $bindingType]; |
1593 |
|
} |