| @@ 914-926 (lines=13) @@ | ||
| 911 | } |
|
| 912 | ||
| 913 | try { |
|
| 914 | if ($params) { |
|
| 915 | list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types); |
|
| 916 | ||
| 917 | $stmt = $this->_conn->prepare($query); |
|
| 918 | if ($types) { |
|
| 919 | $this->_bindTypedValues($stmt, $params, $types); |
|
| 920 | $stmt->execute(); |
|
| 921 | } else { |
|
| 922 | $stmt->execute($params); |
|
| 923 | } |
|
| 924 | } else { |
|
| 925 | $stmt = $this->_conn->query($query); |
|
| 926 | } |
|
| 927 | } catch (Exception $ex) { |
|
| 928 | throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types)); |
|
| 929 | } |
|
| @@ 1063-1076 (lines=14) @@ | ||
| 1060 | } |
|
| 1061 | ||
| 1062 | try { |
|
| 1063 | if ($params) { |
|
| 1064 | list($query, $params, $types) = SQLParserUtils::expandListParameters($query, $params, $types); |
|
| 1065 | ||
| 1066 | $stmt = $this->_conn->prepare($query); |
|
| 1067 | if ($types) { |
|
| 1068 | $this->_bindTypedValues($stmt, $params, $types); |
|
| 1069 | $stmt->execute(); |
|
| 1070 | } else { |
|
| 1071 | $stmt->execute($params); |
|
| 1072 | } |
|
| 1073 | $result = $stmt->rowCount(); |
|
| 1074 | } else { |
|
| 1075 | $result = $this->_conn->exec($query); |
|
| 1076 | } |
|
| 1077 | } catch (Exception $ex) { |
|
| 1078 | throw DBALException::driverExceptionDuringQuery($this->_driver, $ex, $query, $this->resolveParams($params, $types)); |
|
| 1079 | } |
|