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():
36983698 tk=<K_COMMENT> { param.add(tk.image); }
36993699 |
37003700 tk=<K_USING> { param.add(tk.image); }
3701+ |
3702+ tk=<K_COLLATE> { param.add(tk.image); }
37013703 )
37023704 {return param;}
37033705}
Original file line number Diff line number Diff line change @@ -494,4 +494,9 @@ private String getLine(BufferedReader in) throws Exception {
494494
495495 return line ;
496496 }
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+ }
497502}
You can’t perform that action at this time.
0 commit comments