mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
SQL: regression fix: make NOW a valid identifier again [#363]
* again, as in 10.2, NOW is a keyword only if followed by parentheses * use AS OF CURRENT_TIMESTAMP or AS OF NOW() * AS OF CURRENT_TIMESTAMP and AS OF NOW() mean AS OF NOW(6), not AS OF NOW(0), (same behavior as in a DEFAULT clause)
This commit is contained in:
committed by
Aleksey Midenkov
parent
d3845132fc
commit
ea1ccfa500
@ -2221,7 +2221,7 @@ static int add_partition_values(String *str, partition_info *part_info,
|
||||
switch (p_elem->type())
|
||||
{
|
||||
case partition_element::AS_OF_NOW:
|
||||
err+= str->append(STRING_WITH_LEN(" AS OF NOW"));
|
||||
err+= str->append(STRING_WITH_LEN(" AS OF CURRENT_TIMESTAMP"));
|
||||
break;
|
||||
case partition_element::VERSIONING:
|
||||
err+= str->append(STRING_WITH_LEN(" VERSIONING"));
|
||||
|
Reference in New Issue
Block a user