1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-19961 MIN(timestamp_column) returns a wrong result in a GROUP BY query

This commit is contained in:
Alexander Barkov
2019-08-19 15:11:14 +04:00
parent 850bf33137
commit 52e276247d
6 changed files with 118 additions and 12 deletions

View File

@@ -3244,6 +3244,16 @@ public:
{
return MYSQL_TIMESTAMP_ERROR;
}
/*
Return true if the native format is fully implemented for a data type:
- Field_xxx::val_native()
- Item_xxx::val_native() for all classes supporting this data type
- Type_handler_xxx::cmp_native()
*/
virtual bool is_val_native_ready() const
{
return false;
}
virtual bool is_timestamp_type() const
{
return false;
@@ -5582,6 +5592,10 @@ public:
{
return MYSQL_TIMESTAMP_DATETIME;
}
bool is_val_native_ready() const
{
return true;
}
bool is_timestamp_type() const
{
return true;