diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-28 15:23:21 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-08-28 15:23:21 +0300 |
commit | 5f35e103ee667b8596efbd138819af8dedd93ed5 (patch) | |
tree | c01e53829e93076958e2c5f625b5bc34f33c12b3 /sql/item.cc | |
parent | 9cd6e7ad73554be6d0186a42f983777a90a984f1 (diff) | |
parent | 4ba20e0a14b9134a7e71aa4b592522967456317c (diff) | |
download | mariadb-git-5f35e103ee667b8596efbd138819af8dedd93ed5.tar.gz |
Merge 10.1 into 10.2
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index efedc1ec8d1..58b00e41fb1 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -3400,6 +3400,20 @@ my_decimal *Item_null::val_decimal(my_decimal *decimal_value) } +longlong Item_null::val_datetime_packed() +{ + null_value= true; + return 0; +} + + +longlong Item_null::val_time_packed() +{ + null_value= true; + return 0; +} + + bool Item_null::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate) { // following assert is redundant, because fixed=1 assigned in constructor @@ -7997,6 +8011,24 @@ bool Item_ref::get_date(MYSQL_TIME *ltime,ulonglong fuzzydate) } +longlong Item_ref::val_datetime_packed() +{ + DBUG_ASSERT(fixed); + longlong tmp= (*ref)->val_datetime_packed(); + null_value= (*ref)->null_value; + return tmp; +} + + +longlong Item_ref::val_time_packed() +{ + DBUG_ASSERT(fixed); + longlong tmp= (*ref)->val_time_packed(); + null_value= (*ref)->null_value; + return tmp; +} + + my_decimal *Item_ref::val_decimal(my_decimal *decimal_value) { my_decimal *val= (*ref)->val_decimal_result(decimal_value); |