assertEquals(1, prep.executeQuery().getMetaData().getColumnCount());
stat.execute("ALTER TABLE TEST ADD COLUMN NAME VARCHAR(255)");
assertEquals(2, prep.executeQuery().getMetaData().getColumnCount());
stat.execute("DROP TABLE TEST");
stat.execute("CREATE TABLE TEST(ID INT PRIMARY KEY, X INT, Y INT)");
assertEquals(3, prep.executeQuery().getMetaData().getColumnCount());
// TODO test auto-recompile with insert..select, views and so on
prep = conn.prepareStatement("INSERT INTO TEST VALUES(1, 2, 3)");
stat.execute("ALTER TABLE TEST ADD COLUMN Z INT");
assertThrows(ErrorCode.COLUMN_COUNT_DOES_NOT_MATCH, prep).execute();