File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/test/java/net/sf/jsqlparser/test/create Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,14 @@ public void testCreateTableWithRange() throws JSQLParserException {
123123 public void testCreateTableWithKey () throws JSQLParserException {
124124 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE bar (key character varying (255) NOT NULL)" );
125125 }
126+
127+ public void testCreateTableWithUniqueKey () throws JSQLParserException {
128+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE animals (id INT NOT NULL, name VARCHAR (100) UNIQUE KEY (id))" );
129+ }
130+
131+ // public void testCreateTableWithSizedKey() throws JSQLParserException {
132+ // assertSqlCanBeParsedAndDeparsed("CREATE TABLE animals (info mediumtext NOT NULL, KEY idx_info (info(10)))");
133+ // }
126134
127135 public void testRUBiSCreateList () throws Exception {
128136 BufferedReader in = new BufferedReader (new InputStreamReader (CreateTableTest .class .getResourceAsStream ("/RUBiS-create-requests.txt" )));
You can’t perform that action at this time.
0 commit comments