Commit Graph

102 Commits

Author SHA1 Message Date
26653ec3e1 planner: enhance the extract table from update/insert/delete stmt in binding sql check (#27519) 2021-08-26 13:00:04 +08:00
79aab25fc2 expression: forbidden bind sql when subquery or union exists (#27347) 2021-08-21 12:12:02 +08:00
2a8612be59 *: SHOW CREATE VIEW/SEQUENCE should ignore local temporary table with the same name (#27344) 2021-08-20 20:24:02 +08:00
165e365e64 session,server: forbid stale read in local temporary tables (#27270) 2021-08-18 12:14:01 +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
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
cc1f990bac planner: fix update panic when update in prepare and execute (#26759) 2021-08-05 23:41:13 +08:00
352f609437 ddl: add admin_check_index compatibility for temporary table (#26465) 2021-08-03 16:27:07 +08:00
443e10066a ddl: make 'drop local temporary table' atomic (#26464) 2021-08-03 11:01:06 +08:00
726abd7903 planner: add support for 'drop temporary table...' (#26435) 2021-07-30 15:09:05 +08:00
0a1875e883 parser,planner: fix the compatiblity of explain_format (#25978) 2021-07-07 15:47:29 +08:00
59d835eac5 executor: support forbid tiflash for stale read (#25828) 2021-07-06 13:33:28 +08:00
7f18c4a5d4 planner: fix incorrect usage of UNION and INTO (#24913) 2021-06-30 13:55:25 +08:00
ec7240edba planner: Rename ExplicitStaleness to IsStaleness (#25791) 2021-06-28 16:15:25 +08:00
92ddceb6a4 executor: reject setting read ts to a future time (#25732) 2021-06-25 18:09:24 +08:00
2b445a1e4d ddl: DROP GLOBAL TEMPORARY TABLE should fail on normal tables (#25639) 2021-06-24 18:55:23 +08:00
8c33190dd7 linter: fix linter error when make dev locally (#25661) 2021-06-23 11:19:22 +08:00
b858ce43c0 config, session: make Local Transaction not to affect Stale Read (#25559) 2021-06-22 17:25:22 +08:00
799591a06f session: read local dc replicas automatically for stale read (#25525)
* fix select

Signed-off-by: yisaer <disxiaofei@163.com>
2021-06-18 17:13:38 +08:00
b52a38981c *: change SHOW CONFIG to require CONFIG privilege (#25379) 2021-06-15 16:56:36 +08:00
xhe
07d0b2d845 planner: forbid prepared stale select in txn (#25375) 2021-06-15 14:30:37 +08:00
bd11917ca0 bindinfo,planner: report error when creating sql binding on temporary table (#25058) 2021-06-15 14:08:37 +08:00
xhe
9189ec66ac *: stale reads compatible with prepare (#25156) 2021-06-11 19:32:35 +08:00
5a1606740c ddl: add create table like check for temporary table (#25082) 2021-06-11 16:50:35 +08:00
811253785c planner, executor: add stale read compatibility for temporary table (#25206) 2021-06-07 21:06:28 +08:00
30fcecad7f planner: add dml support in CTE (#25024) 2021-06-03 15:50:27 +08:00
b7e448aa10 ddl: add auto random && shard_row_id_bits compatibility for temporary table (#24940) 2021-06-02 15:56:26 +08:00
c8c0dd0bb9 executor: supports as of timestamp compatibility (#25019) 2021-06-02 11:29:38 +08:00
d435129d01 executor: make set transaction as of timestamp supports select statement (#24984) 2021-06-01 16:29:38 +08:00
11019d6f34 ddl: add admin_checksum_table compatibility for temporary table (#24867) 2021-05-31 15:47:36 +08:00
963288a68c planner: build plan for CTE (#24792) 2021-05-28 16:47:35 +08:00
f3557bb591 planner, executor: supports select statement with AS OF (#24613) 2021-05-27 21:11:35 +08:00
79669921ff ddl: add region and split compatibility for temporary table (#24684) 2021-05-25 13:17:33 +08:00
89c0e6c91a ddl: add check table compatibility for temporary table (#24501) 2021-05-12 21:49:40 +08:00
af6cece281 *: support read and write operations for the global temporary table (#24196) 2021-04-29 21:49:58 +08:00
4072172c05 *: add security enhanced mode part 1 (#23978) 2021-04-15 09:51:51 +08:00
276dd0e69e util: optimize the performance of restore with db (#22910) 2021-03-12 16:46:56 +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
d0ca720a5f *: support ALTER TABLE ADD / DROP TIDB_STATS (#22127) 2021-01-14 15:28:28 +08:00
e234403616 planner: fix panic in extractSelectAndNormalizeDigest (#22333) 2021-01-11 15:43:10 +08:00
51794e9d30 *: rewrite origin SQL with default DB for SQL bindings (#21275) 2021-01-06 16:28:29 +08:00
3e64072c3c ddl, planner, types: add M>=D checking for decimal column definition with default value (#21845) 2020-12-29 16:06:54 +08:00
2c429bdc0a ddl, planner: fix no failure in modifing and creating column DOUBLE(0,0) (#22039) 2020-12-29 15:41:10 +08:00
fa952307bf ddl: fix default decimal Flen value (#22036) 2020-12-29 14:35:13 +08:00
34b4e9a033 planner, privilege: check for table not exists (#21776) 2020-12-23 17:40:37 +08:00
b9c5aaf552 planner: error by default for GROUP BY expr ASC|DESC (#21120) 2020-12-10 16:01:51 +08: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