9f40950832
*: Address comments
2015-09-15 13:55:52 +08:00
c60f34f010
*: Support binary operator
...
See: https://dev.mysql.com/doc/refman/5.7/en/cast-functions.html#operator_binary
2015-09-15 13:26:12 +08:00
d975040647
parser: Support cast char with charset
...
Bug found in phpMyAdmin
2015-09-15 12:31:56 +08:00
f651e32d46
Merge pull request #145 from pingcap/qiuyesuifeng/cleanup-parse-error
...
parser: cleanup parser/scanner error.
2015-09-15 10:59:10 +08:00
7c5612473d
parser: address comment.
2015-09-15 10:15:22 +08:00
e2a06556b5
parser: simplify compare operation
2015-09-15 08:20:21 +08:00
e2fdde00e6
parser: Fix bug in parse database()
...
The args list is empty. But ExpressionList need at least one arg.
2015-09-14 23:42:23 +08:00
91e605ebd7
parser: cleanup parser/scanner error.
2015-09-14 21:19:22 +08:00
6ee7619206
parser: Add any/some to UnReservedKeyword list
...
ANY and SOME are unreserved keywords
See: https://dev.mysql.com/doc/refman/5.7/en/keywords.html
2015-09-14 14:01:12 +08:00
88553d8c4b
Merge remote-tracking branch 'origin/master' into shenli/merge-master
2015-09-14 13:58:28 +08:00
1d29edc88d
parser: Address comments
2015-09-14 13:56:20 +08:00
55fb663476
parser: Refactor function
...
Avoid conflict for function name and keywords
Pass all the tests
2015-09-14 13:22:14 +08:00
91aa4edec7
Merge pull request #138 from pingcap/ngaut/tiny-clean-up
...
parser: Remove imaginary and runeType
2015-09-14 12:53:29 +08:00
3f47469dba
parser: Remove runeType
2015-09-14 11:20:19 +08:00
5574bbbcd4
parser: Remove imaginary
2015-09-14 10:56:20 +08:00
097a6485cf
Merge pull request #137 from pingcap/ngaut/tiny-clean-up
...
store, parser: Remove unused variables
2015-09-14 10:47:27 +08:00
030e0a1bd6
store, parser: Remove unused variables
2015-09-14 10:42:37 +08:00
730adf7fb5
Merge pull request #136 from pingcap/ngaut/tiny-clean-up
...
expression, parser: Tiny clean up
2015-09-14 10:42:09 +08:00
58c7cf3a23
expression, parser: Tiny clean up
2015-09-14 10:15:44 +08:00
9af521044a
parser: WIP: clean up function name
2015-09-14 08:52:29 +08:00
be9ed50943
parser: remove some/any from UnReservedKeyword.
2015-09-12 20:36:47 +08:00
abc406a741
Merge branch 'master' into qiuyesuifeng/any-all-support
2015-09-12 09:34:06 +08:00
fd248380ff
parser: handle unreserve any and some
2015-09-12 09:33:28 +08:00
9d7e50c8ee
Merge pull request #117 from pingcap/shenli/set-charset
...
parser: Charset name can be string literal
2015-09-11 23:25:10 +08:00
811e4b99d1
parser: Fix alignment
...
Address comment
2015-09-11 23:11:35 +08:00
ee84db6d6b
parser/parser.y: S/R conflicts 1->0.
2015-09-11 15:01:26 +02:00
1d23a43c3f
parser/parser.y: S/R conflicts 2->1.
2015-09-11 13:55:15 +02:00
de4eb12af8
parser/parser.y: S/R conflicts 3->2.
2015-09-11 12:36:33 +02:00
f713eb201a
*: add base compare subquery framework
...
@qiuyesuifeng
Conflicts:
parser/parser_test.go
2015-09-11 17:49:54 +08:00
f497c05795
parser/parser.y: S/R conflicts 4->3.
2015-09-11 11:49:37 +02:00
5d3284da6f
parser: Charset name can be string literal
...
Fix bug in running phpMyAdmin
2015-09-11 17:46:04 +08:00
b13d935670
Merge pull request #114 from pingcap/shenli/show-variables
...
Shenli/show variables
2015-09-11 17:37:20 +08:00
3ec8d27a71
parser/parser.y: S/R conflicts 9->4.
2015-09-11 10:23:35 +02:00
6ce10d1a4d
expressions,parser: IN expression uses subquery
2015-09-11 13:45:47 +08:00
15eaba81a2
Merge pull request #104 from cznic/master
...
parser/parser.y: S/R conflicts 10->9.
2015-09-11 12:38:26 +08:00
825bb7c6a3
expressions: update subquery
2015-09-11 11:48:51 +08:00
e052e57ef9
parser/parser.y: S/R conflicts 10->9.
2015-09-10 19:48:21 +02:00
6c292141f0
Merge pull request #102 from cznic/master
...
parser/parser.y: S/R conflicts 11->10.
2015-09-10 23:31:31 +08:00
396b0a2bca
Merge pull request #100 from pingcap/coocood/convert
...
util/types, column, expressions: use types.Convert to replace Col.Cas…
2015-09-10 23:30:54 +08:00
0b06ec79ae
parser/parser.y: S/R conflicts 11->10.
2015-09-10 14:45:19 +02:00
20cf24f535
*: Implement show variables stmt/rset/plan
...
TODO: add test cases
2015-09-10 20:24:09 +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
a6998ebe42
parser/parser.y: S/R conflicts 18->11.
2015-09-10 14:06:45 +02:00
288fc4bc17
parser: Support SHOW VARIABLES syntax
...
Finish parser, implement in the next commit.
2015-09-10 19:32:04 +08:00
bc95ddd9f5
parser/parser.y: Remove superfluous production of FieldOpts. (S/R conflicts 24->18).
2015-09-10 13:16:10 +02:00
89455adedc
Merge pull request #89 from pingcap/coocood/unify-int-type
...
*: unify all integer types to int64 and uint64
2015-09-10 11:26:49 +08:00
3b283fb619
Address comment
2015-09-10 11:00:40 +08:00
546431339e
Address comment
2015-09-10 10:43:53 +08:00
e9f0c697fc
parser: support row constructor
2015-09-10 08:32:40 +08:00
25eac139ad
parser: Address comment
2015-09-10 07:41:43 +08:00