By the way, there is OUTPUT INTO clause in SQLInsertCompiler class too. It means it has the same bug.
When SQLInsertCompiler is used and when SQLInsertCompiler2 is used?