@Test public void testCreateTempTable3() throws QueryParserException { String sql = "Create TEMPORARY table tempTable (c1 boolean, c2 byte)"; assertEquals( "CREATE LOCAL TEMPORARY TABLE tempTable (c1 boolean, c2 byte)", QueryParser.getQueryParser().parseCommand(sql).toString()); // $NON-NLS-1$ }
public static MetadataFactory helpParse(String ddl, String model) { MetadataFactory mf = new MetadataFactory(null, 1, model, getDataTypes(), new Properties(), null); QueryParser.getQueryParser().parseDDL(mf, ddl); return mf; }