expandReturningStar
fun expandReturningStar(stmt: Statement, sql: String, tableName: String, columnNames: List<String>): String(source)
Rewrites a bare RETURNING * on a write over the entity's own table into the entity's explicit columns, mirroring expandSelectStar. Returns the SQL unchanged for anything else (a non-write, a write against a different table, or an explicit RETURNING column list).