Commit Graph

50 Commits

Author SHA1 Message Date
3c7ac58d20 server: defer handshake packet make TiDB crash (#2267)
malformat packet is just an error
out of range panic should not spread to TiDB
2016-12-17 11:24:26 +08:00
24f27a2622 *: types.TimeInternal GoTime method would return error (#2185) 2016-12-12 17:22:49 +08:00
a14d99ef5d server: defend panic for ill-packet with null connection attribute (#2211)
* server: defend panic for ill-packet with null connection attribute
2016-12-09 17:38:04 +08:00
296f4a6cf3 util/types: refact Time introduce a TimeInternal interface (#2098)
Go time representation is not compatible with mysql, this
commit is a prepare before the code refact.

timeInternal is a interface for time representation, and it
would make the refact more smooth.
2016-11-29 21:04:59 +08:00
704a963f70 server: Enlarge token from 100 to 1000 (#2125) 2016-11-29 14:30:28 +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
f4b78e44da server: speed up unit test (#2010)
run many test cases parallel
split databases in server package for parallel
2016-11-23 10:46:43 +08:00
6b444f8e55 server: check an array out of range for malform packet (#2048) 2016-11-21 23:10:28 +08:00
91050ff1f8 parser: parse decimal literal instead of float literal (#2044)
Improves MySQL compatibility.
2016-11-21 19:29:25 +08:00
2f47f24b22 parser: database.ReservedKeyword as identifier & clean up (#2027)
1. fix a bug test.desc can't be used as identifier, which is valid in mysql
2. introduce ReservedKeyword in parser.y and clean up
3. fix mysql client "use `select`;" can't work
4. refine lexer's special comment mode pos line/offset
2016-11-19 14:22:10 +08:00
7ddb150920 executor: add more statements for metric of statement counter (#1967) 2016-11-15 14:34:15 +08:00
d0cb5d9187 *: truncate data (#2002) 2016-11-15 14:02:20 +08:00
2543f4b17c parser: handle scan identifier meets \0 (#1994)
this is a vague corner case
it should be illegal according to mysql document
but mysql implementation seems accept it
so we follow implementation
trim \0 in conn packet, report error when parser meet \0
2016-11-12 09:30:12 +08:00
1b96db9a57 *: improve query metrics and query log. (#1957)
change largest query time bucket from 2 seconds to 1024 seconds.
2016-11-05 18:15:33 +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
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
6938f973cb server: Change handshake error log level (#1839) 2016-10-18 14:41:58 +08:00
1fbdb1b193 *: Tiny clean up (#1826)
* *: add error check and error trace
* server: rename MySql to MySQL
2016-10-14 18:11:57 +08:00
80ea2ea093 server: fix connection string collation (#1811) 2016-10-10 19:02:40 +08:00
0e289d1c0e *: Update TiDB version, check ClientLocalFiles capability when handling load data operation (#1774) 2016-10-09 20:36:43 +08:00
900a7d67dd server: add comments for readability. (#1798) 2016-10-09 18:48:22 +08:00
e472f5aa3b server: handle ClientPluginAuthLenencClientData capability properly (#1772)
fix issue https://github.com/pingcap/tidb/issues/1768
2016-09-29 10:38:50 +08:00
453158c5a3 *: update server metrics (#1749) 2016-09-21 19:44:35 +08:00
5cf2c28e5a store/tikv: add metrics. (#1741) 2016-09-21 10:32:53 +08:00
999fa025c7 server: Add metrics (#1729)
Add metrics for server package.
Update gitcookie.sh.
2016-09-17 11:45:57 +08:00
a02323047e *: remove go-metrics (#1728)
We use prometheus to do metrics jobs now.

It is useless now.
2016-09-14 15:07:41 +08:00
a82abef98f server: Add git hash into status api (#1724)
It is more convenient to get git hash from http api then from log file.
2016-09-14 10:32:29 +08:00
5755249263 server: support mysql CLIENT_CONNECT_ATTRS capability (#1684) 2016-09-06 18:28:15 +08:00
06f0c4cbeb server/driver.go: fix typo 2016-08-31 02:28:42 -05:00
ed4649e85d *: Support load data local (#1634) 2016-08-30 09:38:37 +08:00
a09d282711 executor: tiny clean up (#1653)
* executor: tiny clean up

* replace more time.Now().Sub() with time.Since()
2016-08-29 06:20:23 -05:00
d642c89656 server: check 'capability' more strictly (#1639)
some client doesn't obey mysql handshake protocol on capability
so we force it
2016-08-26 17:01:42 +08:00
5ebdc1c765 server: support MULTI_STATEMENTS and MULTI_RESULTS capability (#1628)
only handle COM_QUERY currently, COM_STMT_PREPARE would be supported later
http://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_MULTI_STATEMENTS

implement set option in client/server protocol
http://dev.mysql.com/doc/internals/en/com-set-option.html
2016-08-26 12:27:52 +08:00
997e4a59f2 *: pass make race (#1617) 2016-08-23 10:46:11 +08:00
b2e8aa93e9 #1586 support MySQL multi-packet packets (#1588) 2016-08-22 10:02:40 +08:00
3ad82590ba server: trim large sql statement for logging. (#1573) 2016-08-09 19:11:52 +08:00
8f93071389 *: Merge pprof and status port and add flag to set host (#1541) 2016-08-02 22:23:46 +08:00
9574322317 support join reorder. (#1522) 2016-08-01 15:57:47 +08:00
8169806756 *: Use prometheus for metrics (#1525)
Add prometheus metrics framework.
2016-07-30 12:08:36 +08:00
945fd1d371 *: add error trace (#1477) 2016-07-20 11:50:33 +08:00
e0dfdc25ed Length check for database, table and column name (#1418) 2016-07-11 13:36:20 +08:00
4eca9cc825 *: fix data races detected by go test -race (#1407) 2016-07-07 15:35:40 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
09306241b3 server: adjust log level (#1348) 2016-06-24 14:13:56 +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
7c7b1b59f5 *: Unify error (#1273)
* *: unify error format in table, server and xapi package

* terror: remove duplicated code
2016-05-31 15:06:11 +08:00
a98ecf8907 optimizer/plan: fix join panic (#1246)
* optimizer/plan: fix join panic
2016-05-23 15:37:10 +08:00
5c9bf7a305 server: Add some time cost logs for query and cmd (#1200) 2016-05-05 13:49:40 +08:00
4eab06df0d *: Fix issue 1135 (#1188)
* *: fix issue 1135

* tidb_server: set the logging level to error
2016-05-03 21:22:28 +08:00
0ecb4da39d *: migrate to vendor (#1175) 2016-04-28 16:57:18 +08:00