diff options
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index b3d78c4c801..7e044f63d0f 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1313,6 +1313,13 @@ public: return m_total_warn_count; } + /* Used to count any warnings pushed after calling set_ok_status(). */ + void increment_warning() + { + if (m_status != DA_EMPTY) + m_total_warn_count++; + } + Diagnostics_area() { reset_diagnostics_area(); } private: |