Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlparser: column option and table option #615 #628

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion intergration/radon-test/r/create.result
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ create table integrate_test.t2 (a int) page_checksum=1 DEFAULT CHARSET=utf8;
ERROR 1149 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 53 near 'page_checksum'

create table integrate_test.t3 (a int) row_format=page DEFAULT CHARSET=utf8;
ERROR 1149 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 50 near 'row_format'
ERROR 1149 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use, syntax error at position 55 near 'page'

drop table if exists integrate_test.t1,integrate_test.t2,integrate_test.t3;

Expand Down
4 changes: 4 additions & 0 deletions src/proxy/ddl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ func TestProxyDDLCreateTable(t *testing.T) {
"create table t4(a int, b int)engine=tokudb PARTITION BY hash(a) ",
"create table t5(a int, b int) default charset=utf8 PARTITION BY hash(a) ",
"create table t6(a int, b int)engine=tokudb auto_increment=10 default charset=utf8 PARTITION BY hash(a) ",
"create table t7(a int collate utf8_bin Collate 'utf8_bin' collate \"utf8_bin\") partition by hash(a)",
"create table t8(a int, b int) partition by hash(a)",
"create table t9(a int, b timestamp(5) on update current_timestamp(5) column_format fixed column_format default column_format dynamic) partition by hash(a)",
"create table t10(a int column_format fixed column_format default column_format dynamic) partition by hash(a) comment='comment option' engine=tokudb default charset='utf8' avg_row_length=123 checksum=1 collate='utf8_bin' compression='lz4' connection='id' data directory='/data' index directory='/index' delay_key_write=1 encryption='n' insert_method=First key_block_size=1 max_rows=3 min_rows=2 pack_keys=default password='pwd' row_format=dynamic stats_auto_recalc=1 stats_persistent=default stats_sample_pages=65535 tablespace=storage",
}

for _, query := range querys {
Expand Down
282 changes: 264 additions & 18 deletions 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.

Loading