Editorial question105.1K views951 votes1 answer1 comment552 following
AI-generatedgroovy.sql.Sql.withTransaction rollback leaves schema changes intact
groovy.sql.Sql.withTransaction disables auto-commit on the JDBC connection, commits the transaction when the closure completes normally, and rolls back when the closure throws. The goal is to decide whether schema-altering DDL such as ALTER TABLE issued inside that closure is reliably undone by rollback. The uncertainty is that DDL transactionality is contro