| @@ 901-913 (lines=13) @@ | ||
| 898 | } |
|
| 899 | ||
| 900 | try { |
|
| 901 | if ($params) { |
|
| 902 | list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types); |
|
| 903 | ||
| 904 | $stmt = $this->_conn->prepare($query); |
|
| 905 | if ($types) { |
|
| 906 | $this->_bindTypedValues($stmt, $params, $types); |
|
| 907 | $stmt->execute(); |
|
| 908 | } else { |
|
| 909 | $stmt->execute($params); |
|
| 910 | } |
|
| 911 | } else { |
|
| 912 | $stmt = $this->_conn->query($query); |
|
| 913 | } |
|
| 914 | } catch (Exception $ex) { |
|
| 915 | throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types)); |
|
| 916 | } |
|
| @@ 1050-1063 (lines=14) @@ | ||
| 1047 | } |
|
| 1048 | ||
| 1049 | try { |
|
| 1050 | if ($params) { |
|
| 1051 | list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types); |
|
| 1052 | ||
| 1053 | $stmt = $this->_conn->prepare($query); |
|
| 1054 | if ($types) { |
|
| 1055 | $this->_bindTypedValues($stmt, $params, $types); |
|
| 1056 | $stmt->execute(); |
|
| 1057 | } else { |
|
| 1058 | $stmt->execute($params); |
|
| 1059 | } |
|
| 1060 | $result = $stmt->rowCount(); |
|
| 1061 | } else { |
|
| 1062 | $result = $this->_conn->exec($query); |
|
| 1063 | } |
|
| 1064 | } catch (Exception $ex) { |
|
| 1065 | throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types)); |
|
| 1066 | } |
|