diff options
author | Alexander Barkov <bar@mysql.com> | 2009-10-21 15:48:22 +0500 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2009-10-21 15:48:22 +0500 |
commit | dcb8bb23c29172949781f5214b8222505752de70 (patch) | |
tree | d2522e7182d47f0be16e18e95d3830f7ff496ce0 /sql/item_timefunc.cc | |
parent | 52701ff3277d6641994e6b76d84bb5903af48d59 (diff) | |
parent | de7d1abe9386c2e9df1a8c5f3b95f3cd57cc6c9f (diff) | |
download | mariadb-git-dcb8bb23c29172949781f5214b8222505752de70.tar.gz |
Merging mysql-next-mr-merge to mysql-next-mr.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 26f6b9f9522..eefc8429f5e 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2493,10 +2493,11 @@ String *Item_char_typecast::val_str(String *str) str_value= *res; // Not malloced string res= &str_value; } + ErrConvString err(res); push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, ER_TRUNCATED_WRONG_VALUE, ER(ER_TRUNCATED_WRONG_VALUE), char_type, - res->c_ptr_safe()); + err.ptr()); res->length((uint) length); } else if (cast_cs == &my_charset_bin && res->length() < (uint) cast_length) |