1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

add option default-week-format and variable default_week_format

(SCRUM)


mysql-test/r/func_time.result:
  result of test default_week_format
mysql-test/t/func_time.test:
  test of default_week_format
sql/mysqld.cc:
  add option default-week-format
sql/set_var.cc:
  add system variable default_week_format
sql/sql_class.h:
  add default_week_format into structure system_variables
sql/sql_yacc.yy:
  change lex of week() with one parameter
This commit is contained in:
unknown
2003-02-19 17:05:35 +05:00
parent c312cd4578
commit bcd22f2a28
6 changed files with 25 additions and 2 deletions

View File

@ -3465,7 +3465,8 @@ enum options
OPT_ERROR_LOG_FILE,
OPT_ENABLE_SHARED_MEMORY,
OPT_SHARED_MEMORY_BASE_NAME,
OPT_OLD_PASSWORDS
OPT_OLD_PASSWORDS,
OPT_DEFAULT_WEEK_FORMAT
};
@ -4282,6 +4283,11 @@ struct my_option my_long_options[] =
(gptr*) &global_system_variables.net_wait_timeout,
(gptr*) &max_system_variables.net_wait_timeout, 0, GET_ULONG,
REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, LONG_TIMEOUT, 0, 1, 0},
{ "default-week-format", OPT_DEFAULT_WEEK_FORMAT,
"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, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
};