lib/Doctrine/DBAL/Driver/SQLSrv/SQLSrvStatement.php 1 location
|
@@ 225-231 (lines=7) @@
|
222 |
|
*/ |
223 |
|
public function execute($params = null) |
224 |
|
{ |
225 |
|
if ($params) { |
226 |
|
$hasZeroIndex = array_key_exists(0, $params); |
227 |
|
foreach ($params as $key => $val) { |
228 |
|
$key = ($hasZeroIndex && is_numeric($key)) ? $key + 1 : $key; |
229 |
|
$this->bindValue($key, $val); |
230 |
|
} |
231 |
|
} |
232 |
|
|
233 |
|
if ( ! $this->stmt) { |
234 |
|
$this->stmt = $this->prepare(); |
lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php 1 location
|
@@ 338-347 (lines=10) @@
|
335 |
|
*/ |
336 |
|
public function execute($params = null) |
337 |
|
{ |
338 |
|
if ($params) { |
339 |
|
$hasZeroIndex = array_key_exists(0, $params); |
340 |
|
foreach ($params as $key => $val) { |
341 |
|
if ($hasZeroIndex && is_numeric($key)) { |
342 |
|
$this->bindValue($key + 1, $val); |
343 |
|
} else { |
344 |
|
$this->bindValue($key, $val); |
345 |
|
} |
346 |
|
} |
347 |
|
} |
348 |
|
|
349 |
|
$ret = @oci_execute($this->_sth, $this->_conn->getExecuteMode()); |
350 |
|
if ( ! $ret) { |
lib/Doctrine/DBAL/Driver/SQLAnywhere/SQLAnywhereStatement.php 1 location
|
@@ 173-181 (lines=9) @@
|
170 |
|
*/ |
171 |
|
public function execute($params = null) |
172 |
|
{ |
173 |
|
if (is_array($params)) { |
174 |
|
$hasZeroIndex = array_key_exists(0, $params); |
175 |
|
|
176 |
|
foreach ($params as $key => $val) { |
177 |
|
$key = ($hasZeroIndex && is_numeric($key)) ? $key + 1 : $key; |
178 |
|
|
179 |
|
$this->bindValue($key, $val); |
180 |
|
} |
181 |
|
} |
182 |
|
|
183 |
|
if ( ! sasql_stmt_execute($this->stmt)) { |
184 |
|
throw SQLAnywhereException::fromSQLAnywhereError($this->conn, $this->stmt); |