Commit Graph

18 Commits

Author SHA1 Message Date
0a55471cba parser: Treat key as primary key in columndef
Fix: https://github.com/pingcap/tidb/issues/961
2016-03-28 14:21:52 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
7f57652532 *: Support more create table options
The options are parsed but ignored.
Fix: https://github.com/pingcap/tidb/issues/975
Fix: https://github.com/pingcap/tidb/issues/974
2016-03-16 10:41:42 +08:00
5fd70ed31e parser: Handle MySQL-specific code
Fix: https://github.com/pingcap/tidb/issues/971
2016-03-15 15:53:39 +08:00
352c27829a evaluator: move date_add and date_sub to buildin
Move the evaluate of ast function date_add and date_sub to builtin.
2016-03-10 19:04:33 +08:00
f4bf763d27 evaluator: move the evaluate of ast function trim to buildin
Move the evaluate of ast function trim to builtin.
2016-03-09 18:06:16 +08:00
02ccdc363a evaluator: move the evaluate of ast function substring_index and locate to buildin
Move the evaluate of ast function substring_index and locate to buildin.
And Change some logic in locate function to make its behavior more similar with MySQL.
2016-03-08 17:30:43 +08:00
afd369e042 evaluator: move the evaluate of ast functions to buildin
Move the evaluate of ast functions extract, convert and substring to buildin.
2016-03-08 10:50:14 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
09fdc21529 *: Remove field package
It is useless when we remove field.ResultField
2016-03-01 16:32:16 +08:00
f6c88b0216 *: address comments. 2016-03-01 11:06:53 +08:00
d9f98132ee ast: introduce 'Datum'
Datum is a value box intended to replace 'interface{}' for better performance and easier to use.
2016-03-01 10:54:59 +08:00
431879e287 buildinFunc: add a strcmp function
Add a function needed in https://github.com/pingcap/tidb/issues/310 .
2016-02-29 15:43:56 +08:00
5461e6256b *: Support InsertStmt in new plan. 2016-02-16 17:50:33 +08:00
3b30b67518 optimizer, executor: support Union statement and Select Distinct. 2016-02-15 13:30:08 +08:00
f164aa5f1e *: Support delete in new plan
Move DeleteStmt from old plan to new plan.
2016-02-15 11:41:52 +08:00
ff0a660b12 Makefile: tiny fix 2016-01-20 14:46:28 +08:00
d298a5fedf *:add parser.go 2016-01-15 21:52:42 +08:00