mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added "hostname" as an alias to function "hostName"
This commit is contained in:
parent
32c7ff7d2c
commit
f25416beb8
@ -54,6 +54,7 @@ public:
|
||||
void registerFunctionHostName(FunctionFactory & factory)
|
||||
{
|
||||
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