mysql_rollback(3)
π mysql_rollback β ok so hear me out bestie π
MariaDB Connector/C manual, section 3, and babes, it's literally just one function. Cute. Manageable. Let's go. π
β¨ NAME β¨
mysql_rollback β rolls back the current transaction π«Ά
πΈ SYNOPSIS πΈ
#include <mysql.h>
my_bool mysql_rollback(MYSQL * mysql);
That's the whole vibe. One line. One function. Slay. π
π¦ DESCRIPTION π¦
Okay so what does it do? It rolls back the current transaction for the database. That's it. That's the function. Undo era. π«§
Returns zero on success, and nonzero if an error occurred. No cap, that's the entire return situation.
π PARAMETER π
mysqlβ a mysql handle, which was previously allocated bymysql_init(3)and connected bymysql_real_connect(3). Like, it has to be a real live handle bestie, not some imaginary one you manifested. π
π NOTES π
β οΈ vibe check warning: mysql_rollback() will not work as expected if autocommit mode was set or the storage engine does not support transactions. So if you set autocommit or you're on a non-transactional engine, this function is givingβ¦ nothing. π Do with that information what you will.
β SEE ALSO β
Like, the whole transactional bestie trio fr fr. Go read them. π§
π THE SIGN-OFF π
This was Version 3.4 of the MariaDB Connector/C page for mysql_rollback(3). That's the whole thing, bestie β transaction rolled back, page fully read, main character energy achieved. Go forth and ROLLBACK. πβ¨πΈπ¦ππ«Ά
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms