mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fixed tests
This commit is contained in:
parent
60530b4dae
commit
41620a5661
@ -308,7 +308,7 @@ DataTypePtr getLeastSupertype(const DataTypes & types)
|
||||
if (const auto * date_time64_type = typeid_cast<const DataTypeDateTime64 *>(type.get()))
|
||||
{
|
||||
const auto scale = date_time64_type->getScale();
|
||||
if (scale > max_scale)
|
||||
if (scale >= max_scale)
|
||||
{
|
||||
max_scale_date_time_index = i;
|
||||
max_scale = scale;
|
||||
|
@ -1,2 +1,2 @@
|
||||
SELECT toDate('2000-01-01') < toDateTime('2000-01-01 00:00:01', 'Europe/Moscow');
|
||||
SELECT toDate('2000-01-01') < toDateTime64('2000-01-01 00:00:01', 5, 'Europe/Moscow');
|
||||
SELECT toDate('2000-01-01') < toDateTime64('2000-01-01 00:00:01', 0, 'Europe/Moscow');
|
||||
|
Loading…
Reference in New Issue
Block a user