Batch Inserts with Autocommit Enabled

A batch execute may be broken into one or more requests to the server.

Batch executes can be broken up due to the "split batch" distributed operation, or because the space for the parameters is more than the packet size. If auto commit is enabled for the connection, then each request (including each request in a single batch execute) is committed. If there is an error on one of these requests, then part of a batch execute may have already been committed before the error was reported.

If your application requires a batch execute to be atomic (all or nothing), then auto commit must be off before the batch execute and an explicit commit or rollback must be done after the batch execute.