This commit is contained in:
Jim Menard 2009-02-09 13:13:13 -05:00
parent 5c2ef0176e
commit 9a7ed4c3d3
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,10 @@ module XGen
end
# Close the cursor.
#
# Note: if a cursor is read until exhausted (read until OP_QUERY or
# OP_GETMORE returns zero for the cursor id), there is no need to
# close it by calling this method.
def close
@db.send_to_db(KillCursorsMessage.new(@cursor_id)) if @cursor_id
@cache = []