mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #11821 from ClickHouse/hostname-alias
Added "hostname" as an alias to function "hostName"
This commit is contained in:
commit
017f55a715
@ -54,6 +54,7 @@ public:
|
|||||||
void registerFunctionHostName(FunctionFactory & factory)
|
void registerFunctionHostName(FunctionFactory & factory)
|
||||||
{
|
{
|
||||||
factory.registerFunction<FunctionHostName>();
|
factory.registerFunction<FunctionHostName>();
|
||||||
|
factory.registerAlias("hostname", "hostName");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
1
tests/queries/0_stateless/01326_hostname_alias.reference
Normal file
1
tests/queries/0_stateless/01326_hostname_alias.reference
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
1
tests/queries/0_stateless/01326_hostname_alias.sql
Normal file
1
tests/queries/0_stateless/01326_hostname_alias.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
SELECT hostname() = hostName();
|
Loading…
Reference in New Issue
Block a user