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
|
@@ 1587-1592 (lines=6) @@
|
| 1584 |
|
if (is_string($type)) { |
| 1585 |
|
$type = Type::getType($type); |
| 1586 |
|
} |
| 1587 |
|
if ($type instanceof Type) { |
| 1588 |
|
$value = $type->convertToDatabaseValue($value, $this->getDatabasePlatform()); |
| 1589 |
|
$bindingType = $type->getBindingType(); |
| 1590 |
|
} else { |
| 1591 |
|
$bindingType = $type; // PDO::PARAM_* constants |
| 1592 |
|
} |
| 1593 |
|
|
| 1594 |
|
return [$value, $bindingType]; |
| 1595 |
|
} |