/** * This builds a command in the following form; If staging table name is "FOO" * the command built is "Delete FROM #FOO" */ private static Command wrapStagingTableUnloadQuery(GroupSymbol intoGroupSymbol) { Drop drop = new Drop(); drop.setTable(intoGroupSymbol); return drop; } }
public Drop clone() { Drop drop = new Drop(); GroupSymbol copyTable = table.clone(); drop.setTable(copyTable); copyMetadataState(drop); return drop; }
public Drop clone() { Drop drop = new Drop(); GroupSymbol copyTable = table.clone(); drop.setTable(copyTable); copyMetadataState(drop); return drop; }
public Drop clone() { Drop drop = new Drop(); GroupSymbol copyTable = table.clone(); drop.setTable(copyTable); copyMetadataState(drop); return drop; }
final public Command dropTable(ParseInfo info) throws ParseException { Drop drop = new Drop(); String table = null; jj_consume_token(DROP); jj_consume_token(TABLE); table = id(null); drop.setTable(new GroupSymbol(table)); {if (true) return drop;} throw new Error("Missing return statement in function"); }
final public Command dropTable(ParseInfo info) throws ParseException { Drop drop = new Drop(); String table = null; jj_consume_token(DROP); jj_consume_token(TABLE); table = id(null); drop.setTable(new GroupSymbol(table)); {if (true) return drop;} throw new Error("Missing return statement in function"); }
final public Command dropTable(ParseInfo info) throws ParseException { Drop drop = new Drop(); String table = null; jj_consume_token(DROP); jj_consume_token(TABLE); table = id(null); drop.setTable(new GroupSymbol(table)); {if (true) return drop;} throw new Error("Missing return statement in function"); }
public static final Drop sample1() { Drop Drop = new Drop(); Drop.setTable(new GroupSymbol("temp_table"));//$NON-NLS-1$ List elements = new ArrayList(); elements.add(new ElementSymbol("a")); //$NON-NLS-1$ elements.add(new ElementSymbol("b")); //$NON-NLS-1$ return Drop; }
public static final Drop sample2() { Drop Drop = new Drop(); Drop.setTable(new GroupSymbol("temp_table2"));//$NON-NLS-1$ List elements = new ArrayList(); elements.add(new ElementSymbol("a")); //$NON-NLS-1$ elements.add(new ElementSymbol("b")); //$NON-NLS-1$ return Drop; }
@Test public void testDropTable() { Drop drop = new Drop(); drop.setTable(new GroupSymbol("tempTable")); //$NON-NLS-1$ helpTest("DROP table tempTable", "DROP TABLE tempTable", drop); //$NON-NLS-1$ //$NON-NLS-2$ }