From f4a021c479e0799b8625ab472ec3c3b15afd5081 Mon Sep 17 00:00:00 2001 From: ritwizsinha Date: Fri, 22 Oct 2021 20:47:17 +0530 Subject: [PATCH] Added test for 2 digit year Signed-off-by: ritwizsinha --- go/vt/sqlparser/parse_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/sqlparser/parse_test.go b/go/vt/sqlparser/parse_test.go index 3653a03331f..6bd09acf32d 100644 --- a/go/vt/sqlparser/parse_test.go +++ b/go/vt/sqlparser/parse_test.go @@ -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",