Commit Graph

347 Commits

Author SHA1 Message Date
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
5d3bb33afd util/types: fix decimal conversion. (#1979)
When datum converts to decimal, we should check the Flen and Decimal of
the given field type, return max value for overflow and round the value
for truncation.
2016-11-09 16:53:30 +08:00
1c6c145f94 *: Set custom verbose flag to true (#1956)
* *: set custom verbose flag to true

* *: update .gitignore
2016-11-05 18:00:13 +08:00
0b43f77e40 util/types: fix convert Double (#1955)
When converting a string to double, the returned value should be parsed from valid part to the string
2016-11-05 16:27:21 +08:00
1f1a60c02a *: improve log (#1944)
Add logging for set system variable.
Add connection ID in log.
Adjust some log level.
Improve readability.
2016-11-04 17:11:10 +08:00
035666f231 plan: add cast function for PatternInExpr. (#1932) 2016-11-03 15:40:58 +08:00
96a444a562 bin: add flag to print version information (#1896) 2016-10-29 08:44:29 +08:00
d38cc3f534 support pushing bitwise operators and LogicXor down to kv (#1846) 2016-10-27 15:09:30 +08:00
f93029c458 util/types: truncate string when flen is 0 (#1880)
unspecified length is -1, we should 0 length too.
2016-10-26 21:52:25 +08:00
3738794502 util/types, table: truncate string by rune count, remove UTF8 validation (#1877)
Column length defined in create table should limits the rune count rather than bytes.
And MySQL doesn't return error for inserting invalid UTF8 string, we should not do it.
2016-10-26 20:34:35 +08:00
aec737e4da charset: fix typo (#1859) 2016-10-23 17:38:18 +08:00
6c3bae93a7 printer: Remove 'the' (#1848) 2016-10-19 20:10:39 +08:00
f4c5511640 *: Update the owner timeout of background job and pass golint (#1840) 2016-10-19 14:54:13 +08:00
2df4a4f29b types: returns data too long error (#1837)
* types: returns data too long error when inserting a string longer than field type length.
2016-10-18 14:12:06 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
999fa025c7 server: Add metrics (#1729)
Add metrics for server package.
Update gitcookie.sh.
2016-09-17 11:45:57 +08:00
b99521846f *: Make golint work and happy. (#1721) 2016-09-13 18:11:47 +08:00
6dec14119a Fix typos (#1714) 2016-09-09 22:58:47 +08:00
42010e61db fix typo and ineffassign (#1702)
* fix typo and ineffassign
2016-09-07 01:57:58 -05:00
6de67d3695 *: do not coerce int and uint to uint (#1671)
partially revert previous PR
2016-09-01 14:14:07 +08:00
e508a23234 util/types: fix CoerceDatum function behavior (#1667)
* util/types: fix CoerceDatum function behavior
2016-08-31 20:15:54 +08:00
9923f8cfa9 Reduce slice growth (#1663) 2016-08-30 19:52:41 +08:00
d6605468be tidb: New domain with retry and backoff (#1640) 2016-08-29 11:17:25 +08:00
558ba06368 decode with value size (#1641)
Add size parameter for Decode to reduce slice growth
BenchmarkDecodeWithSize-8 300000 6153 ns/op
BenchmarkDecodeWithOutSize-8 200000 11934 ns/op
2016-08-26 10:44:03 +08:00
79a044312d *: cleanup Makefile (#1625)
remove travis 1.5.3,
makes check run faster.
gofmt writes file.
2016-08-23 15:54:51 +08:00
e31b281ee7 *: use new MyDecimal implementation. (#1611) 2016-08-22 20:24:39 +08:00
a3eac844ae *: Support set names binary (#1578) 2016-08-15 22:25:23 +08:00
39e4d52bd7 *: support index where and aggregate push down. (#1567) 2016-08-15 20:03:52 +08:00
1f9da091b8 util/types: change FieldType of exprNode to value instead of pointer (#1564) 2016-08-09 12:45:59 +08:00
0d864a1710 *: Add --log-file flag to set log file path (#1560) 2016-08-08 10:52:31 +08:00
1d5fdbfaf9 *: improve time codec. (#1551) 2016-08-05 14:23:38 +08:00
8169806756 *: Use prometheus for metrics (#1525)
Add prometheus metrics framework.
2016-07-30 12:08:36 +08:00
212ba73b4a util/codec: encode int64 to varint if not comparable (#1448) 2016-07-25 12:52:06 +08:00
6abc5d88b7 types: Fix bug for CalculateSum (#1497) 2016-07-25 12:04:53 +08:00
f5a6c962b5 *: Change ctx.Value from interface{} to Datum (#1494) 2016-07-25 10:42:54 +08:00
945fd1d371 *: add error trace (#1477) 2016-07-20 11:50:33 +08:00
8749945b0c *: add builtin function greatest (#1463) 2016-07-20 11:32:14 +08:00
1cdb2cc18d Fix bugs in string literal unescape (#1432)
Unescape string literal in lex scanner
2016-07-13 11:50:29 +08:00
61ada26dc4 Support sum in xapi. (#1409) 2016-07-08 19:59:13 +08:00
db4cdcfaec parser: reduce memory allocation (#1408) 2016-07-07 16:42:30 +08:00
5408833b9a ddl: improve ddl test (#1387) 2016-07-05 11:21:50 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
c24ef9face util/testkit: print error stack when assert error. (#1381) 2016-07-02 12:59:22 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
1a706853ed Rename err2 to err1 where possible (#1331) 2016-06-19 08:33:33 +08:00
d7f9f6fb3c Fix misspelling of different in comment (#1321) 2016-06-15 13:04:19 +08:00
004500171e *: Refactor datum arithmetic codes and support Add/Div in xeval. (#1311)
Prepare for aggregate function sum/avg.
2016-06-13 11:24:07 +08:00
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
75f089d056 util/types: clean up, removed unused code. (#1281) 2016-06-02 10:42:36 +08:00
97df813e92 fix parsing error caused by single quote transformation (#1274)
fix parsing error caused by single quote transformation
2016-06-01 17:41:20 +08:00