File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/statement/create Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -3698,6 +3698,8 @@ List<String> CreateParameter():
3698
3698
tk=<K_COMMENT> { param.add(tk.image); }
3699
3699
|
3700
3700
tk=<K_USING> { param.add(tk.image); }
3701
+ |
3702
+ tk=<K_COLLATE> { param.add(tk.image); }
3701
3703
)
3702
3704
{return param;}
3703
3705
}
Original file line number Diff line number Diff line change @@ -494,4 +494,9 @@ private String getLine(BufferedReader in) throws Exception {
494
494
495
495
return line ;
496
496
}
497
+
498
+ @ Test
499
+ public void testCollateUtf8Issue785 () throws JSQLParserException {
500
+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE DEMO_SQL (SHARE_PWD varchar (128) COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'COMMENT') ENGINE = InnoDB AUTO_INCREMENT = 34 DEFAULT CHARSET = utf8 COLLATE = utf8_bin COMMENT = 'COMMENT'" );
501
+ }
497
502
}
You can’t perform that action at this time.
0 commit comments