Commit 33a61180 authored by Sergei Morozov's avatar Sergei Morozov Committed by Marco Pivetta

[DBAL-2546] Fixed SQLAnywhereStatement::closeCursor()

parent dc3cfb2f
...@@ -131,7 +131,7 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement ...@@ -131,7 +131,7 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement
*/ */
public function closeCursor() public function closeCursor()
{ {
if ( ! sasql_stmt_free_result($this->stmt)) { if (!sasql_stmt_reset($this->stmt)) {
throw SQLAnywhereException::fromSQLAnywhereError($this->conn, $this->stmt); throw SQLAnywhereException::fromSQLAnywhereError($this->conn, $this->stmt);
} }
......
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