Merge pull request #22042 from Slach/fix_issue_22028

case insensitive aliases for CONNECTION_ID() and VERSION()
This commit is contained in:
alexey-milovidov 2021-03-29 21:02:24 +03:00 committed by GitHub
commit bb925e16bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 3 deletions

View File

@ -34,8 +34,8 @@ private:
void registerFunctionConnectionID(FunctionFactory & factory)
{
factory.registerFunction<FunctionConnectionID>();
factory.registerAlias("connection_id", "connectionID");
factory.registerFunction<FunctionConnectionID>(FunctionFactory::CaseInsensitive);
factory.registerAlias("connection_id", "connectionID", FunctionFactory::CaseInsensitive);
}
}

View File

@ -49,7 +49,7 @@ public:
void registerFunctionVersion(FunctionFactory & factory)
{
factory.registerFunction<FunctionVersion>();
factory.registerFunction<FunctionVersion>(FunctionFactory::CaseInsensitive);
}
}

View File

@ -0,0 +1 @@
1 1 1

View File

@ -0,0 +1 @@
SELECT version()=Version(), VERSION()=Version(), vErSiOn()=VeRsIoN();

View File

@ -0,0 +1 @@
0 0 0 0 0 0

View File

@ -0,0 +1 @@
SELECT connection_id(), CONNECTION_ID(), CoNnEcTiOn_Id(), connectionid(), CONNECTIONID(), CoNnEcTiOnId();