mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Make least and greatest functions case insensitive for compatibility with MySQL
This commit is contained in:
parent
c5c1a8def7
commit
dec3e0f986
@ -57,7 +57,7 @@ using FunctionGreatest = FunctionBinaryArithmetic<GreatestImpl, NameGreatest>;
|
||||
|
||||
void registerFunctionGreatest(FunctionFactory & factory)
|
||||
{
|
||||
factory.registerFunction<FunctionGreatest>();
|
||||
factory.registerFunction<FunctionGreatest>(FunctionFactory::CaseInsensitive);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ using FunctionLeast = FunctionBinaryArithmetic<LeastImpl, NameLeast>;
|
||||
|
||||
void registerFunctionLeast(FunctionFactory & factory)
|
||||
{
|
||||
factory.registerFunction<FunctionLeast>();
|
||||
factory.registerFunction<FunctionLeast>(FunctionFactory::CaseInsensitive);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
2
|
||||
-1
|
2
tests/queries/0_stateless/01117_greatest_least_case.sql
Normal file
2
tests/queries/0_stateless/01117_greatest_least_case.sql
Normal file
@ -0,0 +1,2 @@
|
||||
SELECT GREATEST(1, 2);
|
||||
SELECT LEAST(1, -1);
|
Loading…
Reference in New Issue
Block a user