494672cb51
admin: impl admin check index for mv index ( #40270 )
...
close pingcap/tidb#40272
2023-01-03 16:58:20 +08:00
18c71f40f6
parser: fix cast function restore ( #40129 )
...
close pingcap/tidb#40130
2022-12-23 14:24:14 +08:00
ae58fa1c8b
expression: introduce cast(... as ... array) in expression index ( #39992 )
...
close pingcap/tidb#40045
2022-12-20 12:56:54 +08:00
3183582106
parser: add cast to array and member of support ( #39820 )
...
close pingcap/tidb#39821
2022-12-12 21:28:51 +08:00
37bd052ee5
planner: rewrite count star to count not null column ( #39197 )
...
close pingcap/tidb#37165
2022-11-28 23:57:59 +08:00
3765abbd43
infoschema: fix bit, year column metadata is not compatible with mysql ( #39142 )
...
close pingcap/tidb#25472
2022-11-15 11:13:56 +08:00
30f313091c
planner: judge nil pointer before call MemoryUsage ( #38764 )
...
ref pingcap/tidb#37632
2022-11-02 11:17:59 +08:00
e0ef093988
executor: fix null type print the wrong column type in infoschema ( #38397 )
...
close pingcap/tidb#38108
2022-10-12 11:27:50 +08:00
20d46c2c53
planner: make unsafe substitute can be used in generated column ( #37779 )
...
close pingcap/tidb#35490
2022-09-16 12:50:59 +08:00
e0b5fa1085
planner: Expression memory trace ( #37624 )
...
ref pingcap/tidb#37632
2022-09-07 10:52:55 +08:00
d6d0ce7b10
*: gofmt code for adapting go 1.19 ( #36832 )
...
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
5b4a82dbf4
*: upgrade bazel timeout ( #36776 )
2022-08-02 11:10:05 +08:00
158ba1a1d9
*: enable part revive for all code ( #36703 )
2022-08-01 14:02:06 +08:00
bf743a6ca0
*: enable flaky test for all test ( #36385 )
...
close pingcap/tidb#36404
2022-07-22 15:35:09 +08:00
911e7cc360
*: enable revive ( #35970 )
...
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
e50b9430fc
*: enable gci ( #35823 )
...
ref pingcap/tidb#35345
2022-07-04 14:53:02 +08:00
c578d19c9f
parser, ddl: support decoding binary literal in set/enum ( #35822 )
...
close pingcap/tidb#31338
2022-06-30 15:36:39 +08:00
c6103886b1
*: enable all gosimples ( #35762 )
...
ref pingcap/tidb#35345
2022-06-29 11:54:39 +08:00
44623f03f4
*: enable more flaky and update bazel config ( #35500 )
...
ref pingcap/tidb#35247
2022-06-20 21:46:37 +08:00
9a77892ac8
execution: avoid decimal overflow and check valid ( #34399 )
...
close pingcap/tidb#30347 , close pingcap/tidb#34388
2022-06-17 21:42:36 +08:00
2b4a4c6d7a
*: support bazel ( #33691 )
...
close pingcap/tidb#34083
2022-06-07 15:22:30 +08:00
7500d79a0a
infoschema: add some annotation for columnInfo #34745 ( #34872 )
...
close pingcap/tidb#34745
2022-05-26 22:32:47 +08:00
1bf64c60f4
*: Refactor FieldType structure ( #33569 )
...
close pingcap/tidb#32116
2022-04-26 19:28:51 +08:00
b4df7ca4dc
test: make all the tests run in serial ( #30692 )
2021-12-14 18:06:36 +08:00
5f340b88c9
parser: format error message during parsing when meet a big value. ( #28791 )
2021-11-18 00:51:47 +08:00
b3bae059ee
parser: add Str2Type method. ( #29857 )
2021-11-17 16:27:47 +08:00
11b61738f3
parser: migrate test-infra to testify ( #29191 )
2021-10-28 12:30:49 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
ad06cfff94
[parser] support cast as year syntax ( #1293 )
2021-10-09 14:53:23 +08:00
67b2a63ac9
[parser] Add EnumSetAsIntFlag flag to control enum behavior. ( #1165 )
...
* add enumset as int flag
* update evaltype
* add has function
* Update mysql/type.go
Co-authored-by: tangenta <tangenta@126.com >
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
b777f86c22
[parser] done ( #1108 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
e3daabacc0
[parser] *: redact arguments for Error ( #1051 )
2021-10-09 14:53:23 +08:00
0e71182447
[parser] types: allows more types to be equal ( #1041 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
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
8dc1467a7f
[parser] correct calculation of field lengths for Enum and Set types ( #954 )
...
* fix invalid enum flen
* fix invalid set flen
* address comments
2021-10-09 14:53:23 +08:00
a1997e6b2a
[parser] add config variable to control max display length ( #949 )
2021-10-09 14:53:23 +08:00
63da8aaba0
[parser] fix: remove TypeDecimal ( #944 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
2a676ef0da
[parser] types: fix restore cast as binary ( #922 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
5757f0b3c8
[parser] types: Update FieldType.Equal safety. ( #841 )
...
* Fix float flen free bug.
* Add unit test
2021-10-09 14:53:23 +08:00
cda62de3ce
[parser] types: Don't check Flen when Tp is double or float in FieldType.Equal. ( #832 )
...
* float flen free.
* Fix bug.
2021-10-09 14:53:23 +08:00
00ada7f542
[parser] terror: replace sirupsen/logrus by pingcap/log ( #693 )
...
* terror: replace sirupsen/logrus by pingcap/log
also fixed test failure on Windows
* circle.yml: restrict test parallelism in integration tests
also, stop verifying parser.go and code format in the integration tests...
those steps are redundant.
* codecov: add codecov.yml, based on pingcap/tidb#9618
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com >
2021-10-09 14:53:23 +08:00
b9268c63bc
[parser] remove dependency on TiDB ( #679 )
2021-10-09 14:53:23 +08:00
989870f109
[parser] *: remove testleak ( #676 )
2021-10-09 14:53:23 +08:00
94eb38bc74
[parser] clean up error code and message for parser ( #618 )
2021-10-09 14:53:23 +08:00
4eea70ebce
[parser] Fix AST.Restore() restore char(1) to char(1,0) ( #421 )
...
* fix4496
* fix4496
2021-10-09 14:53:23 +08:00
a580fe29ee
[parser] parser: support cast as float ( #416 )
...
* parser: support_cast_as_float
* fix
2021-10-09 14:53:23 +08:00
f100bfdd65
[parser] parser: support cast as double ( #399 )
2021-10-09 14:53:23 +08:00
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