Commit Graph

29 Commits

Author SHA1 Message Date
e5eef7b2fd Merge remote-tracking branch 'origin/master' into shenli/variable-error 2015-12-26 21:55:20 +08:00
0b99e0440b *: Move variable errors to sessionctx/variable 2015-12-24 15:27:41 +08:00
87d007d234 *: Move kv errors to kv package 2015-12-24 13:34:03 +08:00
c7baa9f1f5 *: Add test case for optimizer error 2015-12-23 17:43:31 +08:00
ec5ce966c9 *: schema errors
1. Move schema errors from terror to infoschema.
2. Convert those errors to mysql error.
2015-12-23 13:07:02 +08:00
9a943edeb9 terror: Address comment 2015-12-18 12:51:36 +08:00
1871bb8acc terror: Remove useless code 2015-12-18 11:15:53 +08:00
aad3d8097f *: Add test case 2015-12-18 11:14:09 +08:00
67ad875a29 *: Convert ErrKeyExists to MySQL error 2015-12-17 23:56:16 +08:00
1e1ef8a0bd *: Support connection_id()
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
d44db8b272 Merge pull request #651 from pingcap/coocood/new-plan
optimizer, executor: Use new plan for simple select statement.
2015-12-09 17:37:26 +08:00
4f565159d0 optimizer, executor: remove panic and Fatal, returns error instead. 2015-12-09 14:53:41 +08:00
d5f82288d8 evaluator: use terror 2015-12-09 12:38:29 +08:00
f706845e49 terror: remove error checker to simplify flags.
@coocood
2015-12-03 16:16:07 +08:00
7b666d187a terror: add helper checker to simplify error check in test. 2015-11-19 10:24:49 +08:00
xia
48f6bc4b0d *: add UnknownSystemVar 2015-11-10 21:31:40 +08:00
xia
3684664f5d *: use terror instead of error 2015-11-10 20:16:22 +08:00
f1a4be756b terror: improve test. 2015-11-06 19:26:03 +08:00
807b897939 terror: remove cause functionality.
Because that make equal check invalid.
2015-11-06 18:33:11 +08:00
de8f85e3f5 terror: fix wrong import 2015-11-06 18:07:21 +08:00
d184f69349 terror: implement juju/errors interfaces to support printing error stack.
Also make base error immutable.
2015-11-06 18:04:29 +08:00
29905679fa Merge remote-tracking branch 'origin/master' into shenli/issue-515.
Use terror to check table not exists error.

Conflicts:
	bootstrap.go
2015-11-06 10:34:00 +08:00
38726769b4 terror: new implementation. 2015-11-05 19:15:49 +08:00
c6c74b6d6b terror: address comment and add update class String method. 2015-11-05 12:26:59 +08:00
83ac08b9bf terror: address comment. 2015-11-05 12:21:58 +08:00
0943aa598e terror: unify util/errors and util/errors2 in terror. 2015-11-05 12:05:16 +08:00
0fab139acb terror: address comment. 2015-11-04 19:01:31 +08:00
c9ca685e19 terror: address comment. 2015-11-04 09:59:28 +08:00
2957a4a9e1 terror: create a new error type that has class and code for comparison.
The current error check can only handle errors that has exactly the same message, when error message is not constant.

For example parsing error has the message describe the context of the error.

With this error type, we can includes context information in the message and still able to check the error type.
2015-11-03 18:26:04 +08:00