diff options
author | unknown <cmiller@zippy.cornsilk.net> | 2007-11-16 17:24:33 -0500 |
---|---|---|
committer | unknown <cmiller@zippy.cornsilk.net> | 2007-11-16 17:24:33 -0500 |
commit | 65f496abf2145a99c5f448604df1cac7db3d0690 (patch) | |
tree | 6a7f329a12990215779d9e88a7e7690a69fc2e2e /sql/item_strfunc.h | |
parent | 170b1aa738ba4ecb9d58a82951bbab6efced1c32 (diff) | |
parent | 1490691e31deb4577402120a80c5a448d3a28d6d (diff) | |
download | mariadb-git-65f496abf2145a99c5f448604df1cac7db3d0690.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint
include/my_sys.h:
Auto merged
myisam/ft_boolean_search.c:
Auto merged
myisam/sort.c:
Auto merged
sql/ha_myisam.cc:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/item_cmpfunc.h:
Auto merged
sql/item_timefunc.cc:
Auto merged
sql/opt_range.cc:
Auto merged
sql/set_var.cc:
Auto merged
sql/set_var.h:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_table.cc:
Auto merged
mysql-test/mysql-test-run.pl:
manual merge
mysql-test/r/ctype_ucs.result:
manual merge
mysql-test/r/func_misc.result:
manual merge
mysql-test/t/ctype_ucs.test:
manual merge
mysql-test/t/func_misc.test:
manual merge
sql/item_strfunc.h:
manual merge
Diffstat (limited to 'sql/item_strfunc.h')
-rw-r--r-- | sql/item_strfunc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_strfunc.h b/sql/item_strfunc.h index 4ffd8125422..3648438a69b 100644 --- a/sql/item_strfunc.h +++ b/sql/item_strfunc.h @@ -35,7 +35,6 @@ public: my_decimal *val_decimal(my_decimal *); enum Item_result result_type () const { return STRING_RESULT; } void left_right_max_length(); - String *check_well_formed_result(String *str); bool fix_fields(THD *thd, Item **ref); }; @@ -535,7 +534,7 @@ public: String *val_str(String *); void fix_length_and_dec() { - max_length= arg_count * collation.collation->mbmaxlen; + max_length= arg_count * 4; } const char *func_name() const { return "char"; } }; @@ -585,7 +584,8 @@ public: void fix_length_and_dec() { collation.set(default_charset()); - max_length= 64; + max_length=64; + maybe_null= 1; } }; |