c3f5479d6b
[parser] Fix handling of FLOAT(p), FLOAT(m,d) and DECIMAL(m,0) types esp. w.r.t. Restore() ( #311 )
...
* parser: fix handling of FLOAT(p) and FLOAT(m,d) types
* FLOAT(50,4) should not automatically become a DOUBLE, it is just a FLOAT
shown with 50 digits.
* FLOAT(0) and FLOAT(24) are the alias of the same type FLOAT. There is no
need to record the Flen.
* types: fix Restore of DECIMAL(m,0) types
* tests: add test cases
2021-10-09 14:53:23 +08:00
568898c8d7
[parser] type/compatibility: fix show create table output of generated column ( #235 )
2021-10-09 14:53:23 +08:00
4eae120d0c
[parser] types: port 'HasCharset' function from MySQL ( #270 )
2021-10-09 14:53:23 +08:00
f9f7fa9a16
[parser] types: Fix description for year type ( #200 )
2021-10-09 14:53:23 +08:00
84f9b45d16
[parser] parser: finish the restore function of all ast node ( #206 )
...
* add test
* restore bindings
* restore bindings
* restore ddl
* charset info
* charset info
* fix fmt
* use keyword write charset
* gomod
* gosum
2021-10-09 14:53:23 +08:00
7abc99d6e3
[parser] parser: implement Restore for CreateTableStmt ( #170 )
2021-10-09 14:53:23 +08:00
d057e9ebaf
[parser] parser: implement Restore for ColumnOption, FieldType and ColumnDef ( #160 )
2021-10-09 14:53:23 +08:00
6d3f99487a
[parser] parser: implement Restore for FuncCallExpr and AggregateFuncExpr ( #102 )
2021-10-09 14:53:23 +08:00
3fb7739efa
[parser] refactor the PR #8619 by introducing the FieldType.Clone() member function ( #77 )
2021-10-09 14:53:23 +08:00
6f2c7111c4
[parser] *: change default charset from utf8 to utf8mb4 ( #13 )
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
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
bd08b0bc70
*: make parser package dependency as small as possible ( #7989 )
2018-10-24 13:19:10 +08:00