diff options
-rw-r--r-- | sql/field.cc | 10 | ||||
-rw-r--r-- | sql/field.h | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index e3db572eb57..565df659245 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -318,6 +318,16 @@ bool Field::optimize_range(uint idx) } /**************************************************************************** + Functions for the Field_null +****************************************************************************/ + +void Field_null::sql_type(String &res) const +{ + res.set("null",4,system_charset_info); +} + + +/**************************************************************************** Functions for the Field_decimal class This is an number stored as a pre-space (or pre-zero) string ****************************************************************************/ diff --git a/sql/field.h b/sql/field.h index 4c0af6e807b..826b0a36fcf 100644 --- a/sql/field.h +++ b/sql/field.h @@ -556,7 +556,7 @@ public: int cmp(const char *a, const char *b) { return 0;} void sort_string(char *buff, uint length) {} uint32 pack_length() const { return 0; } - void sql_type(String &str) const { str.set("null",4,my_thd_charset); } + void sql_type(String &str) const; uint size_of() const { return sizeof(*this); } }; |