<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Regarding the MariaDB transactions</title><link>https://community.appian.com/discussions/f/general/25897/regarding-the-mariadb-transactions</link><description>In My Practice Application, 
 I have an accounts table that contains the details of the account holder like the name, balance, etc. 
 Here, I am writing a stored procedure to transfer an amount from one account to another account 
 in the Transfer Amount</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Regarding the MariaDB transactions</title><link>https://community.appian.com/thread/101316?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 08:37:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d418d5a-ca3a-4b22-b984-cd26613084f3</guid><dc:creator>jammulas0001</dc:creator><description>&lt;p&gt;Hi mohan, can you please try the below code. Here I have used customer and accounts table for example. If there is an error signal, customer table will be printed, else account table will be printed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;DELIMITER $$
CREATE DEFINER=dbadmin@% PROCEDURE transactionCode()
BEGIN
    DECLARE _rollback BOOL DEFAULT 0;
    DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET _rollback = 1;
        
    START TRANSACTION;
        SIGNAL SQLSTATE &amp;#39;45000&amp;#39; SET MESSAGE_TEXT = &amp;quot;This above executed SQL statements will be rollbacked&amp;quot;;
    IF _rollback 
    THEN
        ROLLBACK;
        SELECT * from Customer;
    ELSE
        COMMIT;
        SELECT * from accounts;
    END IF;
END$$
DELIMITER ;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>