return "INSERT INTO MySchema.MyTable (MyTable.MyIndex, MyTable.MyName, MyTable.MyDate) (SELECT MyTable0.MyIndex, MyTable0.MyName, MyTable0.MyDate FROM MySchema.MyTable AS MyTable0)";
}
public void testBulkInsert() {
Table table = getBasicTable();
InsertStatement insertStatement = getSQLFactory().newInsertStatement();
insertStatement.setTable(table);
SelectStatement st = table.getSelectStatement();
SQLGenerator generator = getSQLGenerator();
generator.setLineTerminator("\n");
insertStatement.setSubSelect(st);
String got = generator.getQuery(insertStatement);
String expect = getBulkInsertResult();
assertEquals(expect, got);
}