Skip to content

Commit 2ca1b0c

Browse files
authored
Merge pull request mysql#39 from planetscale/dbussink/fix-broken-assertion
Fix broken assertion for rows read
2 parents 87805bf + a4628a2 commit 2ca1b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class Diagnostics_area {
393393
}
394394

395395
ulonglong rows_read() const {
396-
assert(m_status == DA_OK);
396+
assert(m_status == DA_OK || m_status == DA_EOF);
397397
return m_rows_read;
398398
}
399399

0 commit comments

Comments
 (0)