We would like to be able to execute a single transaction which creates a large number of table rows and then queries all the contents of that table to be returned. To do this we are using CreateInBatches within a Transaction call.
The issue occurs because we have PreparedStatement in the config set to true and the underlying driver, mysql in our case, does not allow for preparing SAVEPOINT statements
GORM Playground Link
https://github.com/go-gorm/playground/pull/560
Description
We would like to be able to execute a single transaction which creates a large number of table rows and then queries all the contents of that table to be returned. To do this we are using CreateInBatches within a Transaction call.
The issue occurs because we have PreparedStatement in the config set to true and the underlying driver, mysql in our case, does not allow for preparing SAVEPOINT statements