Commit Graph

53 Commits

Author SHA1 Message Date
b7c722aab6 Support SQLMode ONLY_FULL_GROUP_BY and fix a join panic bug (#4613) 2017-11-06 10:53:29 +08:00
545ceb7aec *: close agg push down by default and remove cbo switch (#4696) 2017-09-30 13:43:21 +08:00
879437475f plan: refine return type, charset and collation for 'get variable' expression (#4550) 2017-09-19 14:52:19 +08:00
31a48f8d75 server: SSL/TLS support (#3716) 2017-09-07 13:36:28 +08:00
31edc09341 Add a system variable to enable automatic split delete data into batches. (#4256)
* *: Batch delete data
2017-08-21 10:37:24 +08:00
96c3ff7c2f *: add variable to control batch size of index join (#4028) 2017-08-04 14:53:05 +08:00
8a1e93bc8e *: add cbo switch. (#3877) 2017-08-03 19:28:17 +08:00
439a47c092 sysvar: fix license (#3460)
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2017-06-12 20:53:55 +08:00
7b6e4475b3 variable: add a varaible to read current timestamp (#3400) 2017-06-06 07:27:30 +08:00
62450b9024 Use etcd to speed up DDL process
Add the mock owner-manager and schema-syncer and enable using etcd to speed up DDL process by default.
2017-06-04 10:00:41 +08:00
83a40db1fa sessionctx/variable: add default value of Password Validation Variables (#3251) 2017-05-15 12:41:24 +08:00
6715099b44 sessionctx: @@version return wrong value (#3232) (#3238) 2017-05-11 00:06:09 +08:00
0d83936ef3 sessionctx: fix comments warning in sessionctx (#3192) 2017-05-04 10:23:15 -05:00
a7f4c3dd5e sessionctx/varsutil: fix parse time_zone '-6:00' (#3165)
Fix a parse bug that negative sign is not take into consideration.
2017-05-02 11:25:15 +08:00
93f4780f40 plan: add variable countReliable to physicalPlanInfo (#3011) 2017-04-24 17:07:31 +08:00
e068663cdc Auto split insert data into multiple batches. (#2958)
Add a sysvar to enable batch insert data and disable batch insert in transaction.
2017-03-30 14:57:55 +08:00
6aa45e441c Make index serial scan concurrency configurable and fix golint errors. (#2928) 2017-03-27 00:57:19 +08:00
ed56d82fa7 sessionctx/variable: refine TiDB specific system variables. (#2915) 2017-03-24 12:57:33 +08:00
7aa024c9a0 *: add UTF8 check global variable. (#2899) 2017-03-23 08:56:21 +08:00
60bcd987d5 plan/statistics: concurrent build columns (#2713) 2017-03-22 22:16:45 +08:00
a408b86269 *: support in subquery unfolding (#2816) 2017-03-16 14:26:34 +08:00
42cd9ac552 *: add flag to control agg push down (#2809) 2017-03-10 20:43:08 +08:00
6b2ac5ad0d variable: Enlarge default value for max_allowed_packet (#2652)
* variable: Enlarge default value for max_allowed_packet
2017-02-15 09:27:49 -06:00
42f570ab46 *: add 'max_allowed_packet' in common variables. (#2470)
To save a global query to TiKV when a new connection creates.
2017-01-15 15:52:05 +08:00
235a7979b9 sessionctx/varsutil: refactor system variable (#2359)
Make varsutil package manage all the system variable get and set method.
2017-01-03 11:15:50 +08:00
ebbbf8993b ddl: speed up create table without the need to change lease. (#2332)
DDLs that doesn't modify rows like create/drop/truncate table, create/drop database
do not need to wait 2 lease on ddl worker, we can safely remove those wait to
speed up DDL.

But user may create a table, then insert data on that table on another TiDB server,
So we need to wait in session.

User can set a session variable to skip DDL wait if needed, and there is no risk of
data inconsistency.

This solution remove the need for user to set lease to zero when loading data,
It's much more safe and easy to use.
2016-12-28 22:08:19 +08:00
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
73f2ffad90 varsutil: remove dependency on 'types' for 'variable' package (#2095)
* varsutil: remove dependency on 'types' for 'variable' package

'variable' package will be used in 'types', remove dependency on 'types' by
moving functions to a new 'varsutil' package.

Also extract 'SetExec' from 'SimpleExec'
2016-11-25 13:44:49 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
5f457a2c62 *: Add a variable to skip constraint check in session. (#2031)
When import data from mysqldump/mydumper. We could skip constraint check.
2016-11-18 22:54:28 +08:00
bfc1ca679a tidb: load and apply common global variables for the session (#1942)
Fixes a bug some global variables like 'sql_mode' not applied to session.
2016-11-03 22:01:15 +08:00
727f9e37d2 sessionctx/variable: fix default tx_read_only variable value. (#1892)
MySQL show this variable as "ON"/"OFF" in documentation, but the real value returned is  "1"/“0”.
2016-10-29 10:15:30 +08:00
efc96a73a6 *: Support set dist sql concurrency by set system variable (#1795) 2016-10-17 15:12:17 +08:00
93e6796d2b *: support history read with old schema (#1790)
When user set 'tidb_snapshot' variable, load and use the schema at the snapshot time.
2016-10-08 19:54:48 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
6dec14119a Fix typos (#1714) 2016-09-09 22:58:47 +08:00
f09574d826 *: support sql mode (#1263) 2016-05-30 13:16:41 +08:00
207c7673b9 *: update error code. 2016-01-16 13:21:06 +08:00
0b99e0440b *: Move variable errors to sessionctx/variable 2015-12-24 15:27:41 +08:00
5e52c60240 *: Fix bug for select @@character_set_database
1. Add charset info when create schema
2. Set charset variable when run use statement
Fix: https://github.com/pingcap/tidb/issues/706
2015-12-11 14:29:32 +08:00
xia
200686bd57 *: rename mockStatist to mockStatistics, and
do tiny clean
2015-11-18 13:33:38 +08:00
xia
1b721ab994 Merge remote-tracking branch 'origin/siddontang/dev-schema-change' into zimuxia/show_status
Conflicts:
	ddl/ddl.go
	session.go
2015-11-16 13:27:38 +08:00
dbf676c820 *: update the function call 2015-11-16 09:58:01 +08:00
xia
415085546b Merge branch 'master' into zimuxia/issue525
Conflicts:
	expression/variable.go
	parser/scanner.l
	plan/plans/show.go
	plan/plans/show_test.go
	stmt/stmts/set.go
2015-11-09 20:22:05 +08:00
xia
5cd36d05f1 *: add GetGlobalStatusVar and SetGlobalStatusVar function,
rename GlobalSysVarAccesssor to GlobalVarAccesssor
2015-11-09 19:41:00 +08:00
a54c7a7ab9 variable: Address comment 2015-11-09 16:50:21 +08:00
7d49f39f2e *: Use Bind/Get global sysvar accessor instead of type assertion 2015-11-09 13:02:30 +08:00
7388f402ef *: Address comment 2015-10-26 22:01:51 +08:00
407d99967e *: Refactor some code to support global system variable. 2015-10-26 14:35:06 +08:00
5f2167a5d9 *: Get/Set global sys var from/to kv store. 2015-10-25 22:38:28 +08:00