| @@ 1549-1555 (lines=7) @@ | ||
| 1546 | $bindIndex = 1; |
|
| 1547 | foreach ($params as $value) { |
|
| 1548 | $typeIndex = $bindIndex + $typeOffset; |
|
| 1549 | if (isset($types[$typeIndex])) { |
|
| 1550 | $type = $types[$typeIndex]; |
|
| 1551 | list($value, $bindingType) = $this->getBindingInfo($value, $type); |
|
| 1552 | $stmt->bindValue($bindIndex, $value, $bindingType); |
|
| 1553 | } else { |
|
| 1554 | $stmt->bindValue($bindIndex, $value); |
|
| 1555 | } |
|
| 1556 | ++$bindIndex; |
|
| 1557 | } |
|
| 1558 | } else { |
|
| @@ 1561-1567 (lines=7) @@ | ||
| 1558 | } else { |
|
| 1559 | // Named parameters |
|
| 1560 | foreach ($params as $name => $value) { |
|
| 1561 | if (isset($types[$name])) { |
|
| 1562 | $type = $types[$name]; |
|
| 1563 | list($value, $bindingType) = $this->getBindingInfo($value, $type); |
|
| 1564 | $stmt->bindValue($name, $value, $bindingType); |
|
| 1565 | } else { |
|
| 1566 | $stmt->bindValue($name, $value); |
|
| 1567 | } |
|
| 1568 | } |
|
| 1569 | } |
|
| 1570 | } |
|