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
f6351df013
util/types: address comment.
2015-10-22 14:13:09 +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
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
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
e6a586d6f2
types: support set type
2015-09-25 16:24:48 +08:00
d8c2c96c8e
types: support enum type
2015-09-24 10:56:07 +08:00
5988e567fb
types: check overflow for bit type
2015-09-21 12:30:15 +08:00
919de86dd5
types: support hex and bit type convert
2015-09-19 16:11:01 +08:00
78434002be
types: support bit type
2015-09-19 15:00:02 +08:00
aae3a62ae8
types: support hex in convert, compare
2015-09-15 15:09:10 +08:00
043816587a
types: Fix convert TypeBit error
...
Pass goxorm test
2015-09-13 13:19:37 +08:00
7c12300baa
utl/types: cast bound to float to compare with float, address comments
2015-09-10 22:54:11 +08:00
80d574bfc4
util/types: unexport method overflow and invConv
2015-09-10 22:29:28 +08:00
8c3e5a28e6
util/types: clean up for golint
2015-09-10 20:14:51 +08:00
a80d131c06
util/types, column, expressions: use types.Convert to replace Col.CastValue
...
The two methods has similar functionality and has complex logic, after this change,
the code base would be easier to maintain.
For `CAST` function, the behaviour is different than the general purpose `types.Convert`,
so I implemented a dedicated function for it.
2015-09-10 20:11:40 +08:00
a5e0858986
*: unify all integer types to int64 and uint64
...
Simplify type related codes.
2015-09-09 22:21:15 +08:00
1e4cdb813f
*: update QL-LICENSE and STRUTIL-LICENSE.
2015-09-08 19:25:50 +08:00
695003b466
util, plan, plan/plans, rset, rsets: fix-copyright-infringement.
2015-09-07 08:48:50 -04:00
9f52db08e2
Merge pull request #10 from pingcap/coocood/convert-year
...
util/types: support convert year
2015-09-06 20:13:46 +08:00
b595679d47
util/types: handle convert year from duration
2015-09-06 20:09:52 +08:00
97ea35c4ba
util/convert: convert year handle case mysql.Time
2015-09-06 19:04:15 +08:00
0054f81c18
util/types: address comments
2015-09-06 17:22:09 +08:00
615110e0ae
types: Convert function
...
Address comment
2015-09-06 17:16:12 +08:00
be56437ad4
util/types: support convert year
...
Convert support more types
2015-09-06 17:13:42 +08:00
d1b3e2da67
types: Improve Convert function
...
Check unsignedflag, charsetbin
2015-09-06 16:54:52 +08:00
0d6f270068
Add files
2015-09-06 12:08:47 +08:00