We\'re trying to run SQL files containing multiple insert statements as a single query, but it seems rollback fails when any of the statements contain an error.
And according to the doc, this is the right thing to do, cursor.execute() returns an iterator and only when the contents in the iterator is consumed, will the commit be successful.