parser icon indicating copy to clipboard operation
parser copied to clipboard

A MySQL Compatible SQL Parser

Results 61 parser issues
Sort by recently updated
recently updated
newest added

### What problem does this PR solve? Add new option `SAMPLERATE` to support collect samples by sample rate for statistics ### What is changed and how it works? Add new...

status/LGT1
needs-rebase

### What problem does this PR solve? This adds scramble generation that is used for the "fast authentication" part of `caching_sha2_password`. Related to https://github.com/pingcap/tidb/issues/9411 See also https://dev.mysql.com/doc/dev/mysql-server/latest/page_caching_sha2_authentication_exchanges.html ### What is...

do-not-merge/work-in-progress

### What problem does this PR solve? Add one more new explain format to enable optimizer trace. ### Check List Tests - Unit test

status/LGT1
needs-rebase

### What problem does this PR solve? I used the wrong word before, modify it here ### What is changed and how it works? ### Check List Tests - Unit...

status/LGT2
needs-rebase

## Feature Request **Is your feature request related to a problem? Please describe:** When using pingcap/parser to parse SQL statement, the Collate in types.FieldType in ColumnDef seems to be always...

## Bug Report 1. What did you do? Attempted to parse the following query >CREATE TABLE t (y2 YEAR(2), y4 YEAR); Query comes from MySQL [documentation ](https://dev.mysql.com/doc/refman/5.7/en/migrating-from-year2.html), found this executing...

type/compatibility

Signed-off-by: hexilee ### What problem does this PR solve? Currently, `format.RestoreCtx.JoinLevel` does not work well in the multi-level subquery. If you parse the following SQL and restore it, you will...

### What problem does this PR solve? Include `no_zero_date` in `sqlmode`, these scenarios should fail to `add column`: ``` create table t (id int); insert into t values(1); alter table...

first-time-contributor
needs-rebase

The [quick start](https://github.com/pingcap/parser/blob/master/docs/quickstart.md) doesn't seem to work because of the dependency on TiDB. I start by including both packages: ``` go get github.com/pingcap/parser go get github.com/pingcap/tidb ``` This leaves me...