summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-03-27 16:11:01 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2003-03-27 16:11:01 +0200
commit691d4b31084d5f2bce52712d88dd4e9b16cb6bfb (patch)
treec19ed3aaad5801a5aed97d10705217b6ee85631d /sql/item_timefunc.h
parentb5bbd3bd12b0647a1c8926d0e559a394b93f9654 (diff)
downloadmariadb-git-691d4b31084d5f2bce52712d88dd4e9b16cb6bfb.tar.gz
Fixing a bug #195
Fixing UNION's popping up in slow query log mysql-test/r/cast.result: Fixing a bug #195 mysql-test/t/cast.test: Fixing a bug #195 sql/item_timefunc.h: Fixing a bug #195 sql/sql_union.cc: Fixing UNION's popping up in the slow query log
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index 2ed126b58e5..87563cf9f47 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -527,7 +527,8 @@ public:
{
String *tmp=args[0]->val_str(a);
null_value=args[0]->null_value;
- tmp->set_charset(charset());
+ if (tmp)
+ tmp->set_charset(charset());
return tmp;
}
void fix_length_and_dec()