More precise get_autocommit based on server_status.
Remove unused variable.
Merge pull request #32 from methane/autocommit

More precise get_autocommit based on server_status.