77import java .util .Iterator ;
88import java .util .List ;
99import java .util .StringTokenizer ;
10-
11- import junit .framework .TestCase ;
1210import net .sf .jsqlparser .JSQLParserException ;
1311import net .sf .jsqlparser .parser .CCJSqlParserManager ;
1412import net .sf .jsqlparser .statement .create .table .ColumnDefinition ;
1513import net .sf .jsqlparser .statement .create .table .CreateTable ;
1614import net .sf .jsqlparser .statement .create .table .Index ;
1715import net .sf .jsqlparser .test .TestException ;
18- import net .sf .jsqlparser .util .TablesNamesFinder ;
1916import static net .sf .jsqlparser .test .TestUtils .*;
17+ import static org .junit .Assert .assertEquals ;
18+ import static org .junit .Assert .assertFalse ;
19+ import static org .junit .Assert .assertTrue ;
20+ import org .junit .Test ;
2021
21- public class CreateTableTest extends TestCase {
22-
23- private CCJSqlParserManager parserManager = new CCJSqlParserManager ();
22+ public class CreateTableTest {
2423
25- public CreateTableTest (String arg0 ) {
26- super (arg0 );
27- }
24+ private final CCJSqlParserManager parserManager = new CCJSqlParserManager ();
2825
26+ @ Test
2927 public void testCreateTable2 () throws JSQLParserException {
3028 String statement = "CREATE TABLE testtab (\" test\" varchar (255))" ;
3129 assertSqlCanBeParsedAndDeparsed (statement );
3230 }
3331
32+ @ Test
3433 public void testCreateTable3 () throws JSQLParserException {
3534 String statement = "CREATE TABLE testtab (\" test\" varchar (255), \" test2\" varchar (255))" ;
3635 assertSqlCanBeParsedAndDeparsed (statement );
3736 }
3837
38+ @ Test
3939 public void testCreateTableAsSelect () throws JSQLParserException , JSQLParserException , JSQLParserException , JSQLParserException {
4040 String statement = "CREATE TABLE a AS SELECT col1, col2 FROM b" ;
4141 assertSqlCanBeParsedAndDeparsed (statement );
4242 }
4343
44+ @ Test
4445 public void testCreateTableAsSelect2 () throws JSQLParserException {
4546 String statement = "CREATE TABLE newtable AS WITH a AS (SELECT col1, col3 FROM testtable) SELECT col1, col2, col3 FROM b INNER JOIN a ON b.col1 = a.col1" ;
4647 assertSqlCanBeParsedAndDeparsed (statement );
4748 }
4849
50+ @ Test
4951 public void testCreateTable () throws JSQLParserException {
5052 String statement = "CREATE TABLE mytab (mycol a (10, 20) c nm g, mycol2 mypar1 mypar2 (23,323,3) asdf ('23','123') dasd, "
5153 + "PRIMARY KEY (mycol2, mycol)) type = myisam" ;
@@ -61,6 +63,7 @@ public void testCreateTable() throws JSQLParserException {
6163 assertEquals (statement , "" + createTable );
6264 }
6365
66+ @ Test
6467 public void testCreateTableUnlogged () throws JSQLParserException {
6568 String statement = "CREATE UNLOGGED TABLE mytab (mycol a (10, 20) c nm g, mycol2 mypar1 mypar2 (23,323,3) asdf ('23','123') dasd, "
6669 + "PRIMARY KEY (mycol2, mycol)) type = myisam" ;
@@ -76,72 +79,88 @@ public void testCreateTableUnlogged() throws JSQLParserException {
7679 assertEquals (statement , "" + createTable );
7780 }
7881
82+ @ Test
7983 public void testCreateTableUnlogged2 () throws JSQLParserException {
8084 String statement = "CREATE UNLOGGED TABLE mytab (mycol a (10, 20) c nm g, mycol2 mypar1 mypar2 (23,323,3) asdf ('23','123') dasd, PRIMARY KEY (mycol2, mycol))" ;
8185 assertSqlCanBeParsedAndDeparsed (statement );
8286 }
8387
88+ @ Test
8489 public void testCreateTableForeignKey () throws JSQLParserException {
8590 String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED, PRIMARY KEY (id), FOREIGN KEY (user_id) REFERENCES ra_user(id))" ;
8691 assertSqlCanBeParsedAndDeparsed (statement );
8792 }
8893
94+ @ Test
8995 public void testCreateTableForeignKey2 () throws JSQLParserException {
9096 String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED, PRIMARY KEY (id), CONSTRAINT fkIdx FOREIGN KEY (user_id) REFERENCES ra_user(id))" ;
9197 assertSqlCanBeParsedAndDeparsed (statement );
9298 }
9399
100+ @ Test
94101 public void testCreateTableForeignKey3 () throws JSQLParserException {
95102 String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED REFERENCES ra_user(id), PRIMARY KEY (id))" ;
96103 assertSqlCanBeParsedAndDeparsed (statement , true );
97104 }
98105
106+ @ Test
99107 public void testCreateTableForeignKey4 () throws JSQLParserException {
100108 String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED FOREIGN KEY REFERENCES ra_user(id), PRIMARY KEY (id))" ;
101109 assertSqlCanBeParsedAndDeparsed (statement , true );
102110 }
103111
112+ @ Test
104113 public void testCreateTablePrimaryKey () throws JSQLParserException {
105114 String statement = "CREATE TABLE test (id INT UNSIGNED NOT NULL AUTO_INCREMENT, string VARCHAR (20), user_id INT UNSIGNED, CONSTRAINT pk_name PRIMARY KEY (id))" ;
106115 assertSqlCanBeParsedAndDeparsed (statement );
107116 }
108117
118+ @ Test
109119 public void testCreateTableParams () throws JSQLParserException {
110120 assertSqlCanBeParsedAndDeparsed ("CREATE TEMPORARY TABLE T1 (PROCESSID VARCHAR (32)) ON COMMIT PRESERVE ROWS" );
111121 }
112122
123+ @ Test
113124 public void testCreateTableUniqueConstraint () throws JSQLParserException {
114125 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE Activities (_id INTEGER PRIMARY KEY AUTOINCREMENT,uuid VARCHAR(255),user_id INTEGER,sound_id INTEGER,sound_type INTEGER,comment_id INTEGER,type String,tags VARCHAR(255),created_at INTEGER,content_id INTEGER,sharing_note_text VARCHAR(255),sharing_note_created_at INTEGER,UNIQUE (created_at, type, content_id, sound_id, user_id))" , true );
115126 }
116127
128+ @ Test
117129 public void testCreateTableDefault () throws JSQLParserException {
118130 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE T1 (id integer default -1)" );
119131 }
120132
133+ @ Test
121134 public void testCreateTableDefault2 () throws JSQLParserException {
122135 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE T1 (id integer default 1)" );
123136 }
124137
138+ @ Test
125139 public void testCreateTableIfNotExists () throws JSQLParserException {
126140 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE IF NOT EXISTS animals (id INT NOT NULL)" );
127141 }
128142
143+ @ Test
129144 public void testCreateTableInlinePrimaryKey () throws JSQLParserException {
130145 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE animals (id INT PRIMARY KEY NOT NULL)" );
131146 }
132147
148+ @ Test
133149 public void testCreateTableWithRange () throws JSQLParserException {
134150 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE foo (name character varying (255), range character varying (255), start_range integer, end_range integer)" );
135151 }
136152
153+ @ Test
137154 public void testCreateTableWithKey () throws JSQLParserException {
138155 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE bar (key character varying (255) NOT NULL)" );
139156 }
140157
158+ @ Test
141159 public void testCreateTableWithUniqueKey () throws JSQLParserException {
142160 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE animals (id INT NOT NULL, name VARCHAR (100) UNIQUE KEY (id))" );
143161 }
144162
163+ @ Test
145164 public void testCreateTableVeryComplex () throws JSQLParserException {
146165 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE `wp_commentmeta` ( `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', `meta_key` varchar(255) DEFAULT NULL, `meta_value` longtext, PRIMARY KEY (`meta_id`), KEY `comment_id` (`comment_id`), KEY `meta_key` (`meta_key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8" , true );
147166 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE `wp_comments` ( `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', `comment_author` tinytext NOT NULL, `comment_author_email` varchar(100) NOT NULL DEFAULT '', `comment_author_url` varchar(200) NOT NULL DEFAULT '', `comment_author_IP` varchar(100) NOT NULL DEFAULT '', `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `comment_content` text NOT NULL, `comment_karma` int(11) NOT NULL DEFAULT '0', `comment_approved` varchar(20) NOT NULL DEFAULT '1', `comment_agent` varchar(255) NOT NULL DEFAULT '', `comment_type` varchar(20) NOT NULL DEFAULT '', `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`comment_ID`), KEY `comment_post_ID` (`comment_post_ID`), KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), KEY `comment_date_gmt` (`comment_date_gmt`), KEY `comment_parent` (`comment_parent`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8" , true );
@@ -156,106 +175,132 @@ public void testCreateTableVeryComplex() throws JSQLParserException {
156175 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE `wp_users` ( `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `user_login` varchar(60) NOT NULL DEFAULT '', `user_pass` varchar(64) NOT NULL DEFAULT '', `user_nicename` varchar(50) NOT NULL DEFAULT '', `user_email` varchar(100) NOT NULL DEFAULT '', `user_url` varchar(100) NOT NULL DEFAULT '', `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `user_activation_key` varchar(60) NOT NULL DEFAULT '', `user_status` int(11) NOT NULL DEFAULT '0', `display_name` varchar(250) NOT NULL DEFAULT '', PRIMARY KEY (`ID`), KEY `user_login_key` (`user_login`), KEY `user_nicename` (`user_nicename`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8" , true );
157176 }
158177
178+ @ Test
159179 public void testCreateTableArrays () throws JSQLParserException {
160180 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE sal_emp (name text, pay_by_quarter integer[], schedule text[][])" );
161181 }
162182
183+ @ Test
163184 public void testCreateTableArrays2 () throws JSQLParserException {
164185 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE sal_emp (name text, pay_by_quarter integer[5], schedule text[3][2])" );
165186 }
166187
188+ @ Test
167189 public void testCreateTableColumnValues () throws JSQLParserException {
168190 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE mytable1 (values INTEGER)" );
169191 }
170192
193+ @ Test
171194 public void testCreateTableColumnValue () throws JSQLParserException {
172195 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE mytable1 (value INTEGER)" );
173196 }
174197
198+ @ Test
175199 public void testCreateTableForeignKey5 () throws JSQLParserException {
176200 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE IF NOT EXISTS table1 (id INTEGER PRIMARY KEY AUTO_INCREMENT, aid INTEGER REFERENCES accounts ON aid ON DELETE CASCADE, name STRING, lastname STRING)" );
177201 }
178202
203+ @ Test
179204 public void testCreateTableForeignKey6 () throws JSQLParserException {
180205 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE test (id long, fkey long references another_table (id))" );
181206 }
182207
208+ @ Test
183209 public void testMySqlCreateTableOnUpdateCurrentTimestamp () throws JSQLParserException {
184210 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE test (applied timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)" );
185211 }
186212
213+ @ Test
187214 public void testMySqlCreateTableWithConstraintWithCascade () throws JSQLParserException {
188215 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table1 (id INT (10) UNSIGNED NOT NULL AUTO_INCREMENT, t2_id INT (10) UNSIGNED DEFAULT NULL, t3_id INT (10) UNSIGNED DEFAULT NULL, t4_id INT (10) UNSIGNED NOT NULL, PRIMARY KEY (id), KEY fkc_table1_t4 (t4_id), KEY fkc_table1_t2 (t2_id), KEY fkc_table1_t3 (t3_id), CONSTRAINT fkc_table1_t2 FOREIGN KEY (t2_id) REFERENCES table_two(t2o_id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT fkc_table1_t3 FOREIGN KEY (t3_id) REFERENCES table_three(t3o_id) ON UPDATE CASCADE, CONSTRAINT fkc_table1_t4 FOREIGN KEY (t4_id) REFERENCES table_four(t4o_id) ON DELETE CASCADE) ENGINE = InnoDB AUTO_INCREMENT = 8761 DEFAULT CHARSET = utf8" );
189216 }
190217
218+ @ Test
191219 public void testMySqlCreateTableWithConstraintWithNoAction () throws JSQLParserException {
192220 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table1 (id INT (10) UNSIGNED NOT NULL AUTO_INCREMENT, t2_id INT (10) UNSIGNED DEFAULT NULL, t3_id INT (10) UNSIGNED DEFAULT NULL, t4_id INT (10) UNSIGNED NOT NULL, PRIMARY KEY (id), KEY fkc_table1_t4 (t4_id), KEY fkc_table1_t2 (t2_id), KEY fkc_table1_t3 (t3_id), CONSTRAINT fkc_table1_t2 FOREIGN KEY (t2_id) REFERENCES table_two(t2o_id) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT fkc_table1_t3 FOREIGN KEY (t3_id) REFERENCES table_three(t3o_id) ON UPDATE NO ACTION, CONSTRAINT fkc_table1_t4 FOREIGN KEY (t4_id) REFERENCES table_four(t4o_id) ON DELETE NO ACTION) ENGINE = InnoDB AUTO_INCREMENT = 8761 DEFAULT CHARSET = utf8" );
193221 }
194222
223+ @ Test
195224 public void testMySqlCreateTableWithTextIndexes () throws JSQLParserException {
196225 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table2 (id INT (10) UNSIGNED NOT NULL AUTO_INCREMENT, name TEXT, url TEXT, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, updated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (id), FULLTEXT KEY idx_table2_name (name)) ENGINE = InnoDB AUTO_INCREMENT = 7334 DEFAULT CHARSET = utf8" );
197226 }
198227
228+ @ Test
199229 public void testCreateTableWithCheck () throws JSQLParserException {
200230 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table2 (id INT (10) NOT NULL, name TEXT, url TEXT, CONSTRAINT name_not_empty CHECK (name <> ''))" );
201231 }
202232
233+ @ Test
203234 public void testCreateTableIssue270 () throws JSQLParserException {
204235 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE item (i_item_sk integer NOT NULL, i_item_id character (16) NOT NULL, i_rec_start_date date, i_rec_end_date date, i_item_desc character varying(200), i_current_price numeric(7,2), i_wholesale_cost numeric(7,2), i_brand_id integer, i_brand character(50), i_class_id integer, i_class character(50), i_category_id integer, i_category character(50), i_manufact_id integer, i_manufact character(50), i_size character(20), i_formulation character(20), i_color character(20), i_units character(10), i_container character(10), i_manager_id integer, i_product_name character(50) )" , true );
205236 }
206237
238+ @ Test
207239 public void testCreateTableIssue270_1 () throws JSQLParserException {
208240 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE item (i_item_sk integer NOT NULL, i_item_id character (16))" );
209241 }
210242
243+ @ Test
211244 public void testCreateTempTableIssue293 () throws JSQLParserException {
212245 assertSqlCanBeParsedAndDeparsed ("CREATE GLOBAL TEMPORARY TABLE T1 (PROCESSID VARCHAR (32))" );
213246 }
214247
248+ @ Test
215249 public void testCreateTableWithTablespaceIssue247 () throws JSQLParserException {
216250 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE TABLE1 (COLUMN1 VARCHAR2 (15), COLUMN2 VARCHAR2 (15), CONSTRAINT P_PK PRIMARY KEY (COLUMN1) USING INDEX TABLESPACE \" T_INDEX\" ) TABLESPACE \" T_SPACE\" " );
217251 }
218252
253+ @ Test
219254 public void testCreateTableWithTablespaceIssue247_1 () throws JSQLParserException {
220255 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE TABLE1 (COLUMN1 VARCHAR2 (15), COLUMN2 VARCHAR2 (15), CONSTRAINT P_PK PRIMARY KEY (COLUMN1) USING INDEX TABLESPACE \" T_INDEX\" )" );
221256 }
222257
258+ @ Test
223259 public void testOnDeleteSetNull () throws JSQLParserException {
224260 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE inventory (inventory_id INT PRIMARY KEY, product_id INT, CONSTRAINT fk_inv_product_id FOREIGN KEY (product_id) REFERENCES products(product_id) ON DELETE SET NULL)" );
225261 }
226262
263+ @ Test
227264 public void testColumnCheck () throws JSQLParserException {
228265 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table1 (col1 INTEGER CHECK (col1 > 100))" );
229266 }
230267
268+ @ Test
231269 public void testTableReferenceWithSchema () throws JSQLParserException {
232270 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE table1 (col1 INTEGER REFERENCES schema1.table1)" );
233271 }
234272
273+ @ Test
235274 public void testNamedColumnConstraint () throws JSQLParserException {
236275 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE foo (col1 integer CONSTRAINT no_null NOT NULL)" );
237276 }
238277
278+ @ Test
239279 public void testColumnConstraintWith () throws JSQLParserException {
240280 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE foo (col1 integer) WITH (fillfactor=70)" );
241281 }
242282
283+ @ Test
243284 public void testExcludeWhereConstraint () throws JSQLParserException {
244285 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE foo (col1 integer, EXCLUDE WHERE (col1 > 100))" );
245286 }
246287
288+ @ Test
247289 public void testTimestampWithoutTimezone () throws JSQLParserException {
248290 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE abc.tabc (transaction_date TIMESTAMP WITHOUT TIME ZONE)" );
249291 }
250292
293+ @ Test
251294 public void testCreateUnitonIssue402 () throws JSQLParserException {
252295 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE temp.abc AS SELECT sku FROM temp.a UNION SELECT sku FROM temp.b" );
253296 }
254297
298+ @ Test
255299 public void testCreateUnitonIssue402_2 () throws JSQLParserException {
256300 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE temp.abc AS (SELECT sku FROM temp.a UNION SELECT sku FROM temp.b)" );
257301 }
258302
303+ @ Test
259304 public void testTimestampWithTimezone () throws JSQLParserException {
260305 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE country_region ("
261306 + "regionid BIGINT NOT NULL CONSTRAINT pk_auth_region PRIMARY KEY, "
@@ -265,34 +310,45 @@ public void testTimestampWithTimezone() throws JSQLParserException {
265310 + "CONSTRAINT region_name_unique UNIQUE (region_name))" );
266311 }
267312
313+ @ Test
268314 public void testCreateTableAsSelect3 () throws JSQLParserException {
269315 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE public.sales1 AS (SELECT * FROM public.sales)" );
270316 }
271317
318+ @ Test
272319 public void testQuotedPKColumnsIssue491 () throws JSQLParserException {
273320 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE `FOO` (`ID` INT64, `NAME` STRING (100)) PRIMARY KEY (`ID`)" );
274321 }
275322
323+ @ Test
276324 public void testQuotedPKColumnsIssue491_2 () throws JSQLParserException {
277325 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE `FOO` (`ID` INT64, `NAME` STRING (100), PRIMARY KEY (`ID`))" );
278326 }
279327
328+ @ Test
280329 public void testKeySyntaxWithLengthColumnParameter () throws JSQLParserException {
281330 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE basic (BASIC_TITLE varchar (255) NOT NULL, KEY BASIC_TITLE (BASIC_TITLE(255)))" );
282331 }
283332
333+ @ Test
284334 public void testIssue273Varchar2Byte () throws JSQLParserException {
285335 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE IF NOT EXISTS \" TABLE_OK\" (\" SOME_FIELD\" VARCHAR2 (256 BYTE))" );
286336 }
287-
337+
338+ @ Test
288339 public void testIssue273Varchar2Char () throws JSQLParserException {
289340 assertSqlCanBeParsedAndDeparsed ("CREATE TABLE IF NOT EXISTS \" TABLE_OK\" (\" SOME_FIELD\" VARCHAR2 (256 CHAR))" );
290341 }
291342
343+ @ Test
344+ public void testIssue661Partition () throws JSQLParserException {
345+ assertSqlCanBeParsedAndDeparsed ("CREATE TABLE T_TEST_PARTITION (PART_COLUMN VARCHAR2 (32) NOT NULL, OTHER_COLS VARCHAR2 (10) NOT NULL) TABLESPACE TBS_DATA_01 PARTITION BY HASH (PART_COLUMN) PARTITIONS 4 STORE IN (TBS_DATA_01) COMPRESS" );
346+ }
347+
348+ @ Test
292349 public void testRUBiSCreateList () throws Exception {
293350 BufferedReader in = new BufferedReader (new InputStreamReader (CreateTableTest .class .
294351 getResourceAsStream ("/RUBiS-create-requests.txt" )));
295- TablesNamesFinder tablesNamesFinder = new TablesNamesFinder ();
296352
297353 try {
298354 int numSt = 1 ;
0 commit comments