mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
fix incode docs
This commit is contained in:
parent
f459ac5517
commit
af5793b26e
@ -160,31 +160,33 @@ REGISTER_FUNCTION(TcpPort)
|
||||
|
||||
REGISTER_FUNCTION(Timezone)
|
||||
{
|
||||
factory.registerFunction<FunctionTimezone>({
|
||||
R"(
|
||||
factory.registerFunction<FunctionTimezone>(
|
||||
FunctionDocumentation{
|
||||
.description=R"(
|
||||
Returns the default timezone for current session.
|
||||
Used as default timezone for parsing DateTime|DateTime64 without explicitly specified timezone.
|
||||
Can be changed with SET timezone = 'New/Tz'
|
||||
|
||||
[example:timezone]
|
||||
)",
|
||||
Documentation::Examples{{"timezone", "SELECT timezone();"}},
|
||||
Documentation::Categories{"Constant", "Miscellaneous"}
|
||||
});
|
||||
factory.registerAlias("timeZone", "timezone");
|
||||
)",
|
||||
.examples{{"timezone", "SELECT timezone();", ""}},
|
||||
.categories{"Constant", "Miscellaneous"}
|
||||
});
|
||||
factory.registerAlias("timeZone", "timezone");
|
||||
}
|
||||
|
||||
REGISTER_FUNCTION(ServerTimezone)
|
||||
{
|
||||
factory.registerFunction<FunctionServerTimezone>({
|
||||
R"(
|
||||
factory.registerFunction<FunctionServerTimezone>(
|
||||
FunctionDocumentation{
|
||||
.description=R"(
|
||||
Returns the timezone name in which server operates.
|
||||
|
||||
[example:serverTimezone]
|
||||
)",
|
||||
Documentation::Examples{{"serverTimezone", "SELECT serverTimezone();"}},
|
||||
Documentation::Categories{"Constant", "Miscellaneous"}
|
||||
});
|
||||
)",
|
||||
.examples{{"serverTimezone", "SELECT serverTimezone();", ""}},
|
||||
.categories{"Constant", "Miscellaneous"}
|
||||
});
|
||||
factory.registerAlias("serverTimeZone", "serverTimezone");
|
||||
factory.registerAlias("servertimezone", "serverTimezone");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user