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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user