Commit Graph

10 Commits

Author SHA1 Message Date
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
11b61738f3 parser: migrate test-infra to testify (#29191) 2021-10-28 12:30:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
5f6739c14e [parser] mysql: modify TypeNewDecimal length in defaultLengthAndDecimalForCast (#1202) 2021-10-09 14:53:23 +08:00
a329df515d [parser] fix tiny bug about cast function (#995) 2021-10-09 14:53:23 +08:00
26b362d28c [parser] parser: rename 'timestampliteral' to avoid misuse of 'select timestampliteral()' (#591)
When the input is select timestamp '2019-10-29 16:14:42', it's parsed to something like

> 'select timestampliteral()'

`timestampliteral` is a valid function name in TiDB, used to implement the timestamp literal.

However, if the input is 'select timestampliteral()', we should reject this query.
This PR renames `timestampliteral` to avoid conflict.
2021-10-09 14:53:23 +08:00
b68ad8a55e [parser] ast: fix case expression format bug (#338) 2021-10-09 14:53:23 +08:00
8862bb53b1 [parser] ignore hint when meet unknow token in hint (#80) 2021-10-09 14:53:23 +08:00
c7db3238fb [parser] Add test case about format "a % b" (#47) 2021-10-09 14:53:23 +08:00
c270f55405 [parser] *: move github.com/pingcap/tidb/parser here (#1) 2021-10-09 14:53:23 +08:00