Commit 01d7097e authored by Sergei Morozov's avatar Sergei Morozov

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

parent 074a12a8
......@@ -131,7 +131,7 @@ class SQLAnywhereStatement implements IteratorAggregate, Statement
*/
public function closeCursor()
{
if ( ! sasql_stmt_free_result($this->stmt)) {
if (!sasql_stmt_reset($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