Skip to content

Commit f194b7c

Browse files
committed
1 parent 8598da5 commit f194b7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/net/sf/jsqlparser/test/create/CreateTableTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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")));

0 commit comments

Comments
 (0)