Skip to content

Commit

Permalink
Fixed CORE-1490 - New builtin function DATEDIFF() implements wrong ch…
Browse files Browse the repository at this point in the history
…oice of keywords for expanded syntax
  • Loading branch information
asfernandes committed Oct 2, 2007
1 parent 056fbe2 commit d8dde42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/sql.extensions/README.builtin_functions.txt
Expand Up @@ -297,7 +297,7 @@ Function:
date/time/timestamp value to the second one.

Format:
DATEDIFF( <timestamp_part> FROM <date_time> FOR <date_time> )
DATEDIFF( <timestamp_part> FROM <date_time> TO <date_time> )
DATEDIFF( <timestamp_part>, <date_time>, <date_time> )

Notes:
Expand Down
2 changes: 1 addition & 1 deletion src/dsql/parse.y
Expand Up @@ -4420,7 +4420,7 @@ system_function_special_syntax
$$ = make_flag_node(nod_sys_function, NOD_SPECIAL_SYNTAX, e_sysfunc_count,
$1, make_node(nod_list, 3, $5, $3, $7));
}
| DATEDIFF '(' timestamp_part FROM value FOR value ')'
| DATEDIFF '(' timestamp_part FROM value TO value ')'
{
$$ = make_flag_node(nod_sys_function, NOD_SPECIAL_SYNTAX, e_sysfunc_count,
$1, make_node(nod_list, 3, $3, $5, $7));
Expand Down

0 comments on commit d8dde42

Please sign in to comment.