Merge pull request #11821 from ClickHouse/hostname-alias

Added "hostname" as an alias to function "hostName"
This commit is contained in:
alexey-milovidov 2020-06-20 21:46:21 +03:00 committed by GitHub
commit 017f55a715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -54,6 +54,7 @@ public:
void registerFunctionHostName(FunctionFactory & factory) void registerFunctionHostName(FunctionFactory & factory)
{ {
factory.registerFunction<FunctionHostName>(); factory.registerFunction<FunctionHostName>();
factory.registerAlias("hostname", "hostName");
} }
} }

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1 @@
SELECT hostname() = hostName();