This property is used to toggle the autocommit feature of MySQL
and retrieve the current state. When the value evaluates to
True, autocommit is turned on, otherwise it
is turned off.
Note that autocommit is disabled by default when connecting
through Connector/Python. This can be toggled using the
connection
parameter autocommit.
When the autocommit is turned off, you must commit transactions when using transactional storage engines such as InnoDB or NDBCluster.
>>> cnx.autocommit False >>> cnx.autocommit = True >>> cnx.autocommit True
Returns True or False.

User Comments
Add your own comment.