Commit Graph

92 Commits

Author SHA1 Message Date
f703633295 Merge pull request #861 from pingcap/shenli/agg-sum
*: Support sum in new plan
2016-01-20 22:24:28 +08:00
eba936c579 *: Address comment 2016-01-20 21:49:29 +08:00
686dc63352 *: Support sum in new plan 2016-01-19 22:58:11 +08:00
bde19d022d util/types: use RawData() to enhance readability 2016-01-19 16:14:41 +08:00
31a78b75f2 util/types: fix order by binary operand
In Orderby Clause, as using BINARY operator to cast the  following operand to a binary string, here meet an error. Improved IsOrderedType() to handle it.
2016-01-19 13:46:16 +08:00
420c589718 *: Fix a bug in type inferrer
1. Add missing CaseExpr.
2. Add field type merge rules for hybrid field type expressions.
2016-01-18 22:56:24 +08:00
cf19afc08b *: Add test cases for type inferrer 2016-01-17 00:16:44 +08:00
d6f63b439a *: Fix missing result type bug 2016-01-16 16:52:55 +08:00
4c840db52a util/types: address comment. 2015-12-24 13:04:04 +08:00
c05500ddc9 util/types: fix DefaultFieldTypeForValue 2015-12-24 12:30:09 +08:00
fbc938e7b6 optimizer: address comment 2015-12-17 14:56:11 +08:00
2e1cf26a32 optimizer: typeInferrer supports more expression.
This is require for implementing prepared statement, because binary protocol depends more
on the result field type to decode value, we have to correctly set the result field type.

For statement like 'select ?', the type of the field is unknown until we execute the statement with argument,
If the field type of  parameter marker `?' is not set properly, client will not be able to read the value.
2015-12-16 18:35:45 +08:00
edf2641df7 *: fix bytes convert issue 2015-12-15 17:22:40 +08:00
19d52ba0e9 optimizer, executor: pass test. 2015-11-26 21:17:44 +08:00
cf9a23d23b optimizer, executor: build ranges for more expression, pass more tests. 2015-11-26 20:02:28 +08:00
bb2e32175b util: tiny refactor RoundFloat function. 2015-11-09 15:39:39 +08:00
21b6d0502e util: fix float64 round function. 2015-11-09 14:02:37 +08:00
0943aa598e terror: unify util/errors and util/errors2 in terror. 2015-11-05 12:05:16 +08:00
7ea5f16b95 Merge pull request #464 from pingcap/qiuyesuifeng/convert-cleanup
Refactor convertToInt/ToInt64 and convertToUint/ToUint64.
2015-10-29 15:23:33 +08:00
829dcd4dbc util: refactor ToInt64 and ToUint64 functions. 2015-10-28 13:34:18 +08:00
798994f658 util: clean up bound check functions. 2015-10-28 12:54:30 +08:00
2ed175243e Merge remote-tracking branch 'origin/master' into shenli/string-literal
Conflicts:
	expression/cast.go
2015-10-26 15:10:07 +08:00
ebfb3377c8 *: Address comment and code cleanup 2015-10-26 15:06:08 +08:00
f6351df013 util/types: address comment. 2015-10-22 14:13:09 +08:00
13ffc0b026 Merge branch 'master' into qiuyesuifeng/unify-cast-convert 2015-10-22 12:03:29 +08:00
ccf38d7491 util/types: tiny cleanup. 2015-10-22 11:55:19 +08:00
64bec698fe *: refactor cast by using convert function. 2015-10-22 11:51:08 +08:00
1b8649d036 types: Add unit tests 2015-10-21 14:44:40 +08:00
ff328a1c60 *: Address comments 2015-10-21 14:22:32 +08:00
de767ac317 *: Fix failed cases in sqllogictest-expr 2015-10-21 13:15:17 +08:00
3442b777ca Merge remote-tracking branch 'origin/master' into shenli/wrap-data 2015-10-19 19:17:01 +08:00
29369dba8f *: Rename mysqldef to mysql 2015-10-19 16:26:43 +08:00
365e957538 Merge remote-tracking branch 'origin/master' into shenli/wrap-data 2015-10-19 15:34:18 +08:00
9acfcd2b14 *: Address comment 2015-10-14 13:49:50 +08:00
641aeabd42 *: Address comment 2015-10-14 13:23:12 +08:00
25b571bf59 *: Set/Enum element with single-quote should be replaced to two single-quotes
Address comment and add testcase
2015-10-14 11:58:48 +08:00
c1f168673f *: Address comment 2015-10-14 11:30:36 +08:00
d01821579e *: Address comment 2015-10-14 11:06:09 +08:00
3a7e3ed2d0 *: Address comment 2015-10-14 10:38:18 +08:00
d50b6c5fcc *: Fix hibernate bug about col.Flen/Decimal 2015-10-13 18:11:11 +08:00
d7c5e24f9d types: Improve compare for DataItem 2015-10-10 17:48:08 +08:00
1509618ffd *: Pass all the test 2015-10-09 22:11:00 +08:00
67cb0f178a *: backup 2015-10-09 18:37:05 +08:00
c1851d3fa6 *: Use DataItem for cast function result
We can not infer result field type from nil.
2015-10-09 17:33:41 +08:00
70b9104122 Merge pull request #309 from pingcap/siddontang/fix-float-precision
fix float precision
2015-10-07 14:29:48 +08:00
bd93fb3f98 *: only truncate float when length and decimal are set 2015-10-07 10:44:48 +08:00
c4bf073996 util: do some cleanup. 2015-10-02 20:25:23 +08:00
340509f0d7 *: use mysql.Bit type instead of old uint64 2015-09-30 08:04:47 +08:00
75d3bafa85 *: lowercase type description
MySQL show columns or show create create table both return lowercase
type description, like int, char, etc…
2015-09-28 21:40:31 +08:00
198099d378 *: Create privilege tables in bootstrap stage
Prepare for grant statement.
2015-09-27 17:46:36 +08:00