Skip to content

Commit

Permalink
sqlparser: add partition list radondb#491
Browse files Browse the repository at this point in the history
[summary]
In syntax, it is similar to MySQL partitioning-list
(https://dev.mysql.com/doc/refman/5.7/en/partitioning-list.html)
but PARTITION b0 has its meaning: b0 represents one backend.

Syntax:
CREATE TABLE l(
 c1 INT NOT NULL,
 c2 INT NOT NULL
) PARTITION BY LIST(c1) (
PARTITION b0 VALUES IN (1,4,7),
PARTITION b1 VALUES IN (2,5,8));

[test case]
src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go

[patch codecov]
coverage: 87.7% of statements
  • Loading branch information
andyli029 committed Oct 21, 2019
1 parent 61723d6 commit aebe306
Show file tree
Hide file tree
Showing 6 changed files with 2,131 additions and 1,995 deletions.
10 changes: 5 additions & 5 deletions src/vendor/github.com/xelabs/go-mysqlstack/driver/server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ast.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/vendor/github.com/xelabs/go-mysqlstack/sqlparser/ddl_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aebe306

Please sign in to comment.