Commit Graph

35 Commits

Author SHA1 Message Date
c0244a380b planner: disallow use of key prefix with zero length (#32176)
close pingcap/tidb#31972
2022-02-11 14:03:36 +08:00
958ab48fa0 *: set global temporary table as GA (#28525) 2021-10-14 11:27:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
42e8d29931 *: Remove noop function check for local temporary table (#28282) 2021-09-26 11:30:46 +08:00
6849e5d56d planner/core: migrate leak tests to goleak (#27433) 2021-08-24 16:02:04 +08:00
d4ec0233c8 ddl: fix DROP [GLOBAL] TEMPORARY TABLE IF EXISTS returns error when table not exist (#27287) 2021-08-17 21:53:59 +08:00
09e3090ba9 go.mod: update parser to fix the parse error for subquery (#25647) 2021-08-17 21:06:00 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
726abd7903 planner: add support for 'drop temporary table...' (#26435) 2021-07-30 15:09:05 +08:00
7f18c4a5d4 planner: fix incorrect usage of UNION and INTO (#24913) 2021-06-30 13:55:25 +08:00
2b445a1e4d ddl: DROP GLOBAL TEMPORARY TABLE should fail on normal tables (#25639) 2021-06-24 18:55:23 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
4b90ef471c planner: include "CREATE/DROP TEMPORARY TABLE" to noop functions (##609) (#22860)
* planner: include "CREATE/DROP TEMPORARY TABLE" to noop functions (##609)

TiDB ignores the TEMPORARY keyword in "CREATE/DROP TEMPORARY TABLE" statements.
Report errors when and only when tidb_enable_noop_functions = OFF.

* Add link to pingcap/parser issue

Co-authored-by: bb7133 <bb7133@gmail.com>

Co-authored-by: bb7133 <bb7133@gmail.com>
Co-authored-by: Morgan Tocker <tocker@gmail.com>
2021-02-27 23:31:06 -07:00
7ea8102185 planner: Add table engine name check (#21110) 2020-12-09 15:56:06 +08:00
7a88ad852d planner: check for decimal format in cast expr (#20836) 2020-12-03 18:39:48 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
f72cec77b6 *: support SQL bind for Update / Delete / Insert / Replace (#20686) 2020-11-17 15:19:04 +08:00
e136429d8d *: refactor parser initialize method and add tidb_enable_strict_double_type_check variable (#20967) 2020-11-16 19:58:27 +08:00
99bdecc966 ddl: fix float precision larger than 53 (#20458) 2020-11-13 14:08:36 +08:00
3b4ba35e28 DDL: create table should not allow explicit empty name index (#20617) 2020-11-03 12:52:44 +08:00
xhe
602afedf84 planner: stable the test introduced by #18474 (#19484) 2020-08-26 21:22:51 +08:00
xhe
c6b80eaeb0 ddl, planner: support ALTER TABLE without use db (#18784) 2020-08-26 15:33:16 +08:00
1e32b49c67 planner: fix create view grammer check (#15334) 2020-03-15 10:06:23 +08:00
27f8c3668f ddl: fix auto_increment is not compatible with MySQL (#14755) 2020-02-14 11:32:14 +08:00
435a912d29 ddl: disallow dropping index on auto_increment column (#11360) 2019-07-23 15:13:24 +08:00
f496b775fd planner: unsigned pk cannot be pushed as index column (#11094) 2019-07-12 16:25:01 +08:00
5c21fa4b43 ddl: implement ALTER DATABASE to alter charset/collation (#10393) 2019-05-15 17:32:21 +08:00
f778a0c9bd type/compatibility: check KEY option for generated column. (#9529) 2019-04-10 19:24:29 +08:00
3045359b4e planner: Fix Error message about select ... inner join (#9626) 2019-03-10 23:08:25 +08:00
560e8cfe57 *: sleep 0 when retry whole transaction (#9454) 2019-03-02 13:16:28 +08:00
4e8c424718 *: basic support for CREATE_VIEW (#8571) 2018-12-18 20:17:27 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
e79bd946ed *: change package name from plan to planner (#7760) 2018-09-25 11:16:39 +08:00