diff options
Diffstat (limited to 'sql/sql_error.h')
-rw-r--r-- | sql/sql_error.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/sql_error.h b/sql/sql_error.h index 14338ee041d..a993e9203c9 100644 --- a/sql/sql_error.h +++ b/sql/sql_error.h @@ -575,11 +575,16 @@ public: class ErrConvInteger : public ErrConv { - longlong num; + longlong m_value; + bool m_unsigned; public: - ErrConvInteger(longlong num_arg) : ErrConv(), num(num_arg) {} + ErrConvInteger(longlong num_arg, bool unsigned_flag= false) : + ErrConv(), m_value(num_arg), m_unsigned(unsigned_flag) {} const char *ptr() const - { return llstr(num, err_buffer); } + { + return m_unsigned ? ullstr(m_value, err_buffer) : + llstr(m_value, err_buffer); + } }; class ErrConvDouble: public ErrConv |