Commit Graph

19 Commits

Author SHA1 Message Date
29b872c6aa server: increase test coverage (#10830)
* fixed a potential panic in conn.go
* added more tests in conn_test.go/util_test.go
* added column_test.go/packetio_test.go
2019-06-24 20:30:04 +08:00
3c0d0534f2 server,types: convert zero input correctly for column type year (#8292) 2018-11-14 15:25:08 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
5baedaa21c expression, types: fix some corner case when parsing string to datetime (#7701) 2018-10-08 10:35:52 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
d567770076 server: fix prepare result for zero timestamp/time/datetime (#7415) 2018-08-20 15:25:51 +08:00
3299f860ff *: use chunk.Row instead of types.DatumRow in test files (#7139) 2018-07-24 21:45:33 +08:00
2bcef0fe71 server: support ComChangeUser (#6623) (#6638) 2018-05-24 19:09:45 +08:00
87405c8408 server: fix a goroutine leak in unit test (#6183) 2018-03-29 19:49:34 +08:00
951bc41566 server: use scientific notation to format float value. (#6160) 2018-03-28 19:45:25 +08:00
8fd5c7de6e server: use types.Row to write result set. (#5056) 2017-11-10 15:41:02 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
7d2804e43c *: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp (#4732) 2017-10-10 23:38:53 -05:00
1dc7bbe28b *: use FieldType.Decimal to control the decimal length of double values to be shown in client (#4191) 2017-08-15 23:39:59 +08:00
5aec72ce81 expression,plan: fix some issues of ROUND func (#2461) 2017-01-22 11:35:26 +08:00
d508b6d2da util/types: workaround for time roundFrac (#2289) 2016-12-21 19:45:27 +08:00
b19cc75a94 mysql, types: move MyDecimal and Time from 'mysql' to 'types' package. (#2082)
So we don't need to handle sql mode in 'mysql' package, avoid potential dependency cycle.
2016-11-24 10:50:31 +08:00
0ecb4da39d *: migrate to vendor (#1175) 2016-04-28 16:57:18 +08:00