| @@ 1537-1543 (lines=7) @@ | ||
| 1534 | $bindIndex = 1; |
|
| 1535 | foreach ($params as $value) { |
|
| 1536 | $typeIndex = $bindIndex + $typeOffset; |
|
| 1537 | if (isset($types[$typeIndex])) { |
|
| 1538 | $type = $types[$typeIndex]; |
|
| 1539 | list($value, $bindingType) = $this->getBindingInfo($value, $type); |
|
| 1540 | $stmt->bindValue($bindIndex, $value, $bindingType); |
|
| 1541 | } else { |
|
| 1542 | $stmt->bindValue($bindIndex, $value); |
|
| 1543 | } |
|
| 1544 | ++$bindIndex; |
|
| 1545 | } |
|
| 1546 | } else { |
|
| @@ 1549-1555 (lines=7) @@ | ||
| 1546 | } else { |
|
| 1547 | // Named parameters |
|
| 1548 | foreach ($params as $name => $value) { |
|
| 1549 | if (isset($types[$name])) { |
|
| 1550 | $type = $types[$name]; |
|
| 1551 | list($value, $bindingType) = $this->getBindingInfo($value, $type); |
|
| 1552 | $stmt->bindValue($name, $value, $bindingType); |
|
| 1553 | } else { |
|
| 1554 | $stmt->bindValue($name, $value); |
|
| 1555 | } |
|
| 1556 | } |
|
| 1557 | } |
|
| 1558 | } |
|