diff options
author | jimw@mysql.com <> | 2005-08-24 15:50:58 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-08-24 15:50:58 -0700 |
commit | 9e4a9e23c67dba556de37d4314e9fe26265ca4db (patch) | |
tree | d1cebeb5bc16f53aaf69f81ac3286a2365c098fc /sql/lex.h | |
parent | b610c0972f9bc976b7969247a2f0a6f5c202eb91 (diff) | |
download | mariadb-git-9e4a9e23c67dba556de37d4314e9fe26265ca4db.tar.gz |
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)
Diffstat (limited to 'sql/lex.h')
-rw-r--r-- | sql/lex.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/lex.h b/sql/lex.h index 7b6d86e327e..4bf3671e5be 100644 --- a/sql/lex.h +++ b/sql/lex.h @@ -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)}, |