diff options
author | holyfoot/hf@hfmain.(none) <> | 2007-11-05 18:12:42 +0400 |
---|---|---|
committer | holyfoot/hf@hfmain.(none) <> | 2007-11-05 18:12:42 +0400 |
commit | 9f40b1dae3478c6ea8a12d0cf94f34a4905193a3 (patch) | |
tree | ae24652ad56bfe7d209902f423129f66134466e8 /sql/item_strfunc.h | |
parent | 6b92ec4acbf78892bc4880913a762db0189ce20f (diff) | |
parent | e93574e9d16efc747a88875325469e2b029e5eb8 (diff) | |
download | mariadb-git-9f40b1dae3478c6ea8a12d0cf94f34a4905193a3.tar.gz |
Merge mysql.com:/home/hf/work/31758/my41-31758
into mysql.com:/home/hf/work/31758/my50-31758
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 04d1997e879..7607ebfc761 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -584,7 +584,8 @@ public: void fix_length_and_dec() { collation.set(default_charset()); - max_length= 64; + max_length=64; + maybe_null= 1; } }; @@ -682,7 +683,7 @@ public: } String* val_str(String* str); const char *func_name() const { return "inet_ntoa"; } - void fix_length_and_dec() { decimals = 0; max_length=3*8+7; } + void fix_length_and_dec() { decimals = 0; max_length=3*8+7; maybe_null=1;} }; class Item_func_quote :public Item_str_func |