diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2008-09-09 20:05:27 +0500 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2008-09-09 20:05:27 +0500 |
commit | 776793a97c97c4e2b2c7a6a2870696c147eb235c (patch) | |
tree | 644e2319ec4acc58e9fd5037dd7a176fef6ff9dd /heap/hp_open.c | |
parent | 788be2aebdb0bce63b45b1fecf2f2d8a12a5cfc7 (diff) | |
download | mariadb-git-776793a97c97c4e2b2c7a6a2870696c147eb235c.tar.gz |
Fix for bug#37526: asymertic operator <=> in trigger
Problem: <=> operator may return wrong results
comparing NULL and a DATE/DATETIME/TIME value.
Fix: properly check NULLs.
mysql-test/r/type_datetime.result:
Fix for bug#37526: asymertic operator <=> in trigger
- test result.
mysql-test/t/type_datetime.test:
Fix for bug#37526: asymertic operator <=> in trigger
- test case.
sql/item_cmpfunc.cc:
Fix for bug#37526: asymertic operator <=> in trigger
- if is_nulls_eq is TRUE Arg_comparator::compare_datetime()
should return 1 only if both arguments are NULL.
Diffstat (limited to 'heap/hp_open.c')
0 files changed, 0 insertions, 0 deletions