Added "hostname" as an alias to function "hostName"

This commit is contained in:
Alexey Milovidov 2020-06-20 10:43:35 +03:00
parent 32c7ff7d2c
commit f25416beb8
3 changed files with 3 additions and 0 deletions

View File

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

View File

@ -0,0 +1 @@
1

View File

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