fix incode docs

This commit is contained in:
zvonand 2023-05-20 16:38:45 +02:00
parent f459ac5517
commit af5793b26e

View File

@ -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");
}