We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da12e3a commit 9bb3f73Copy full SHA for 9bb3f73
1 file changed
src/execute.jl
@@ -203,8 +203,9 @@ Base.IteratorSize(::Type{<:TextCursors}) = Base.SizeUnknown()
203
function Base.iterate(cursor::TextCursors{buffered}, first=true) where {buffered}
204
cursor.cursor.result.ptr == C_NULL && return nothing
205
if !first
206
+ has_more_results = API.moreresults(cursor.cursor.conn.mysql)
207
finalize(cursor.cursor.result)
- if API.moreresults(cursor.cursor.conn.mysql)
208
+ if has_more_results
209
@assert API.nextresult(cursor.cursor.conn.mysql) !== nothing
210
cursor.cursor.result = buffered ? API.storeresult(cursor.cursor.conn.mysql) : API.useresult(cursor.cursor.conn.mysql)
211
if buffered
0 commit comments