parser
parser copied to clipboard
A MySQL Compatible SQL Parser
On MySQL 8, all optimizer hints parsed *before* a syntax error will be accepted: ```console $ echo 'SELECT SLEEP(1);' | mysql -u root SLEEP(1) 0 $ echo 'SELECT /*+ max_execution_time(2)...
1. What did you do? ```sh make test ``` 2. What did you expect to see? test pass. 3. What did you see instead? ```sh make test gofmt (simplify) sh...
## Bug Report 1. What did you do? ```sql mysql> CREATE TABLE t (i INT, PRIMARY KEY (i)) ENGINE = InnoDB; mysql> INSERT INTO t (i) VALUES(1),(2),(3); mysql> SELECT *...
These SQLs: ```sql select 1 where true; select 1 group by 1; select 1 having true; ``` All return one row with the value 1 on MySQL 8.0 (also tested...
e.g. select * from t123_terms inner join t123_abc ... inner join t123_xyz; how do i replace t123... with abc.t123_...? please help. thx
## Question Why TableInfo.ID type is int64 not uint64?
## Feature Request This is sub issue of https://github.com/pingcap/tidb/issues/15938 **Is your feature request related to a problem? Please describe:** To implement getting mvcc info through SQL, TiDB need to support...
## Feature Request **Is your feature request related to a problem? Please describe:** Background: Once a PR modifies the `parser.y` file, it needs to regenerate the `parser.go` file with `goyacc`...
Recently I'm working on improving TiDB parser's compatibility( see [Improve parser compatibility](https://github.com/pingcap/tidb/issues/11486)). As we all know, parser's behavior is mostly base on MySQL5.7, but as time goes by there are...
## Bug Report Please answer these questions before submitting your issue. Thanks! 1. What did you do? If possible, provide a recipe for reproducing the error. ``` drop database if...