Skip to content

Commit

Permalink
Added test for 2 digit year
Browse files Browse the repository at this point in the history
Signed-off-by: ritwizsinha <[email protected]>
  • Loading branch information
ritwizsinha committed Oct 22, 2021
1 parent 1935e7d commit f4a021c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ var (
}, {
input: "SELECT EXTRACT(YEAR_MONTH FROM '2019-07-02 01:02:03')",
output: "select extract(year_month from '2019-07-02 01:02:03') from dual",
}, {
input: "select extract(year from \"21-10-22 12:00:00\")",
output: "select extract(year from '21-10-22 12:00:00') from dual",
}, {
input: "SELECT EXTRACT(DAY_MINUTE FROM '2019-07-02 01:02:03')",
output: "select extract(day_minute from '2019-07-02 01:02:03') from dual",
Expand Down

0 comments on commit f4a021c

Please sign in to comment.