mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#32198: Comparison of DATE with DATETIME still not using indexes correctly
- Make conditions like "date_col $CMP$ 'datetime-const'" range-sargable
This commit is contained in:
@ -5259,6 +5259,9 @@ void Field_date::sql_type(String &res) const
|
||||
1 Value was cut during conversion
|
||||
2 Wrong date string
|
||||
3 Datetime value that was cut (warning level NOTE)
|
||||
This is used by opt_range.cc:get_mm_leaf(). Note that there is a
|
||||
nearly-identical class Field_date doesn't ever return 3 from its
|
||||
store function.
|
||||
*/
|
||||
|
||||
int Field_newdate::store(const char *from,uint len,CHARSET_INFO *cs)
|
||||
|
Reference in New Issue
Block a user