mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Make SYSDATE() behave as in Oracle: always the current datetime, not the
datetime of when the current statement began. This also makes SYSDATE() not safe in replication. (Bug #12562) mysql-test/r/func_time.result: Add new results mysql-test/t/func_time.test: Add tests for new SYSDATE() behavior sql/item_timefunc.cc: Add Item_func_sysdate_local implementation sql/item_timefunc.h: Add Item_func_sysdate_local, so SYSDATE() can behave differently than NOW(). sql/lex.h: SYSDATE() is no longer an alias for NOW(). sql/sql_yacc.yy: Handle SYSDATE()
This commit is contained in:
parent
a7ce02bcf7
commit
da13a76a28
6 changed files with 191 additions and 3 deletions
|
|
@ -751,7 +751,7 @@ static SYMBOL sql_functions[] = {
|
|||
{ "SUBSTRING_INDEX", SYM(SUBSTRING_INDEX)},
|
||||
{ "SUBTIME", F_SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_subtime)},
|
||||
{ "SUM", SYM(SUM_SYM)},
|
||||
{ "SYSDATE", SYM(NOW_SYM)},
|
||||
{ "SYSDATE", SYM(SYSDATE)},
|
||||
{ "SYSTEM_USER", SYM(USER)},
|
||||
{ "TAN", F_SYM(FUNC_ARG1),0,CREATE_FUNC(create_func_tan)},
|
||||
{ "TIME_FORMAT", F_SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_time_format)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue