summaryrefslogtreecommitdiff
path: root/sql/sql_error.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_error.h')
-rw-r--r--sql/sql_error.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_error.h b/sql/sql_error.h
index 70d40e3e6a0..aa8e6c6b0f3 100644
--- a/sql/sql_error.h
+++ b/sql/sql_error.h
@@ -712,7 +712,10 @@ public:
m_status == DA_OK_BULK); return m_message; }
bool skip_flush() const
- { DBUG_ASSERT(m_status == DA_OK); return m_skip_flush; }
+ {
+ DBUG_ASSERT(m_status == DA_OK || m_status == DA_OK_BULK);
+ return m_skip_flush;
+ }
void set_skip_flush()
{ m_skip_flush= TRUE; }