Commit 658e3257 authored by Sergei Morozov's avatar Sergei Morozov Committed by Marco Pivetta

[DBAL-2546] Fixed the failure of...

[DBAL-2546] Fixed the failure of `Functional\StatementTest::testReuseStatementWithParameterBoundByReference()` on ibm_db2
parent 3e0a4946
...@@ -161,16 +161,16 @@ class DB2Statement implements \IteratorAggregate, Statement ...@@ -161,16 +161,16 @@ class DB2Statement implements \IteratorAggregate, Statement
return false; return false;
} }
/*$retval = true;
if ($params !== null) {
$retval = @db2_execute($this->_stmt, $params);
} else {
$retval = @db2_execute($this->_stmt);
}*/
if ($params === null) { if ($params === null) {
ksort($this->_bindParam); ksort($this->_bindParam);
$params = array_values($this->_bindParam);
$params = array();
foreach ($this->_bindParam as $column => $value) {
$params[] = $value;
}
} }
$retval = @db2_execute($this->_stmt, $params); $retval = @db2_execute($this->_stmt, $params);
if ($retval === false) { if ($retval === false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment