diff options
author | bar@mysql.com <> | 2004-10-29 17:00:39 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2004-10-29 17:00:39 +0500 |
commit | 7577c8bfc9efb21b8a8a3c08e342054e754370ab (patch) | |
tree | 9cc9765d8b1a393421a6e3df083461c690d1c028 /sql/item_timefunc.cc | |
parent | 64c59b37f899e520f6ba3ff8d0f9724423eb9b88 (diff) | |
download | mariadb-git-7577c8bfc9efb21b8a8a3c08e342054e754370ab.tar.gz |
A fix according to Monty's request:
"uint *errors" is now a non-optional parameter in String:copy()
and copy_and_convert().
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r-- | sql/item_timefunc.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 3c8dbb013a9..f621953a5bc 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2121,8 +2121,10 @@ String *Item_char_typecast::val_str(String *str) else { // Convert character set if differ + uint dummy_errors; if (!(res1= args[0]->val_str(&tmp_value)) || - str->copy(res1->ptr(), res1->length(),res1->charset(), cast_cs)) + str->copy(res1->ptr(), res1->length(), res1->charset(), + cast_cs, &dummy_errors)) { null_value= 1; return 0; |