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