Avoid calling commit on read-only statements