diff options
author | gluh@gluh.mysql.r18.ru <> | 2003-12-07 15:10:21 +0400 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2003-12-07 15:10:21 +0400 |
commit | 48317785878fbb31d444629e08deef7212f53906 (patch) | |
tree | 12065da4c1bf5c1634e8c4f911f6af4e7eccee6c /sql/mysqld.cc | |
parent | 0b7ccfa882e56e009f0dd0d19bf9db423123d8e0 (diff) | |
download | mariadb-git-48317785878fbb31d444629e08deef7212f53906.tar.gz |
WL#1175: more default_week_formats for iso compatibility
New formats added for 'week()' function and 'default_week_format' option(4 - 7).
Next formats is supported now:
*Value* *Meaning*
`0' Week starts on Sunday; First Sunday of the year starts week 1.
Week() returns 0-53.
`1' Week starts on Monday; Weeks numbered according to ISO 8601:1988.
Week() returns 0-53.
`2' Week starts on Sunday; First Sunday of the year starts week 1.
Week() returns 1-53.
`3' Week starts on Monday; Weeks numbered according to ISO 8601:1988.
Week() returns 1-53.
`4' Week starts on Sunday; Weeks numbered according to ISO 8601:1988.
Week() returns 0-53.
`5' Week starts on Monday; First Monday of the year starts week 1.
Week() returns 0-53.
`6' Week starts on Sunday; Weeks numbered according to ISO 8601:1988.
Week() returns 1-53.
`7' Week starts on Monday; First Monday of the year starts week 1.
Week() returns 1-53.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index e5ddbfe7a33..84287a6cba1 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4105,7 +4105,7 @@ this value; if zero (the default): when the size exceeds max_binlog_size. \ "The default week format used by WEEK() functions.", (gptr*) &global_system_variables.default_week_format, (gptr*) &max_system_variables.default_week_format, - 0, GET_ULONG, REQUIRED_ARG, 0, 0, 3L, 0, 1, 0}, + 0, GET_ULONG, REQUIRED_ARG, 0, 0, 7L, 0, 1, 0}, {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0} }; |