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