Roll back the current transaction. See `Connection.rollback() `_ in the specification.
(self)
| 502 | self._read_ok_packet() |
| 503 | |
| 504 | def rollback(self): |
| 505 | """ |
| 506 | Roll back the current transaction. |
| 507 | |
| 508 | See `Connection.rollback() <https://www.python.org/dev/peps/pep-0249/#rollback>`_ |
| 509 | in the specification. |
| 510 | """ |
| 511 | self._execute_command(COMMAND.COM_QUERY, "ROLLBACK") |
| 512 | self._read_ok_packet() |
| 513 | |
| 514 | def show_warnings(self): |
| 515 | """Send the "SHOW WARNINGS" SQL command.""" |