mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Additional fix for the bug#27759: Wrong DATE/DATETIME comparison in LEAST()/GREATEST() functions.
This commit is contained in:
parent
6ec0bc24a7
commit
eddd02158b
2 changed files with 3 additions and 0 deletions
|
@ -206,6 +206,8 @@ select greatest(cast('01-01-01' as date), '01-01-02');
|
|||
select least(cast('01-01-01' as date), '01-01-02') + 0;
|
||||
select greatest(cast('01-01-01' as date), '01-01-02') + 0;
|
||||
select least(cast('01-01-01' as datetime), '01-01-02') + 0;
|
||||
select cast(least(cast('01-01-01' as datetime), '01-01-02') as signed);
|
||||
select cast(least(cast('01-01-01' as datetime), '01-01-02') as decimal);
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS test27759 ;
|
||||
--enable_warnings
|
||||
|
|
|
@ -703,6 +703,7 @@ public:
|
|||
my_decimal *val_decimal(my_decimal *);
|
||||
void fix_length_and_dec();
|
||||
enum Item_result result_type () const { return cmp_type; }
|
||||
bool result_as_longlong() { return compare_as_dates; };
|
||||
uint cmp_datetimes(ulonglong *value);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue