@@ 63-77 (lines=15) @@ | ||
60 | return $result; |
|
61 | } |
|
62 | ||
63 | public function executeQuery($query, array $params = array()) |
|
64 | { |
|
65 | if (null !== $this->logger) { |
|
66 | $this->logger->startQuery($query, $params); |
|
67 | } |
|
68 | ||
69 | $result = $this->conn->query($this->prepareQuery($query, $params)); |
|
70 | ||
71 | if (null !== $this->logger) { |
|
72 | $this->logger->stopQuery(); |
|
73 | } |
|
74 | $meta = $this->conn->query('SHOW META'); |
|
75 | ||
76 | return new ResultSet($result, $meta); |
|
77 | } |
|
78 | ||
79 | public function executeMultiQuery($query, array $params = array(), array $types = array(), array $resultSetNames = array()) |
|
80 | { |
|
@@ 79-93 (lines=15) @@ | ||
76 | return new ResultSet($result, $meta); |
|
77 | } |
|
78 | ||
79 | public function executeMultiQuery($query, array $params = array(), array $types = array(), array $resultSetNames = array()) |
|
80 | { |
|
81 | if (null !== $this->logger) { |
|
82 | $this->logger->startQuery($query, $params); |
|
83 | } |
|
84 | ||
85 | $results = $this->conn->multiQuery($this->prepareQuery($query, $params), $resultSetNames); |
|
86 | ||
87 | if (null !== $this->logger) { |
|
88 | $this->logger->stopQuery(); |
|
89 | } |
|
90 | $meta = $this->conn->query('SHOW META'); |
|
91 | ||
92 | return new MultiResultSet($results, $meta); |
|
93 | } |
|
94 | ||
95 | public function quote($value) |
|
96 | { |