diff options
author | unknown <serg@serg.mysql.com> | 2003-03-11 21:20:53 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-03-11 21:20:53 +0100 |
commit | 07bb46f1434d6cf2e0221146f79876f1f86c56c1 (patch) | |
tree | c76eced132524e977b9e4608a4e534482170b908 /sql/item.cc | |
parent | b8ab0ce91b326f536c364b3964ba9dfdfef51849 (diff) | |
download | mariadb-git-07bb46f1434d6cf2e0221146f79876f1f86c56c1.tar.gz |
fixed an obscure bug in group by + having + Item_ref::get_date
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index 9b4274ab71d..a2d9f0b2575 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -194,6 +194,17 @@ bool Item_field::get_date(TIME *ltime,bool fuzzydate) return 0; } +bool Item_field::get_date_result(TIME *ltime,bool fuzzydate) +{ + if ((null_value=result_field->is_null()) || + result_field->get_date(ltime,fuzzydate)) + { + bzero((char*) ltime,sizeof(*ltime)); + return 1; + } + return 0; +} + bool Item_field::get_time(TIME *ltime) { if ((null_value=field->is_null()) || field->get_time(ltime)) |