1 24 25 package org.objectweb.cjdbc.scenario.raidb2; 26 27 import java.sql.Connection ; 28 29 import org.objectweb.cjdbc.scenario.templates.SimpleRaidb2Template; 30 31 37 public class Raidb2StaticSchemaScenario extends SimpleRaidb2Template 38 { 39 public void testDrop() throws Exception 40 { 41 cm.loadVirtualDatabases(controller, "myDB", 43 "hsqldb-raidb2-static-schema.xml"); 44 mainVdb = controller.getVirtualDatabase("myDB"); 45 mainVdb.enableAllBackends(); 46 47 Connection con = getCJDBCConnection(); 48 con.createStatement().executeUpdate("Drop table REGION"); 49 50 con.createStatement().executeUpdate("create table region ( r_regionkey INTEGER NOT NULL, r_name CHAR(25), r_comment VARCHAR(152), PRIMARY KEY(r_regionkey))"); 51 } 52 } 53 | Popular Tags |