]> git.wh0rd.org Git - tt-rss.git/commitdiff
mysql_convert_unicode: add transaction block
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 25 Aug 2007 15:49:13 +0000 (16:49 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 25 Aug 2007 15:49:13 +0000 (16:49 +0100)
mysql_convert_unicode.php

index dfc833b44ac2c43cf2c41f79e6d1b498cef1c638..6fe72994c2a234b46d870c1a892c2cce11967839 100644 (file)
@@ -81,6 +81,7 @@ function confirmOP() {
        
                print "<p>".__("Converting database...")."</p>";
 
+               db_query($link, "BEGIN");
                db_query($link, "SET FOREIGN_KEY_CHECKS=0");
 
                $result = db_query($link, "SHOW TABLES LIKE 'ttrss%'");
@@ -98,6 +99,7 @@ function confirmOP() {
                }
 
                db_query($link, "SET FOREIGN_KEY_CHECKS=1");
+               db_query($link, "COMMIT");
 
                print "<form method=\"GET\" action=\"logout.php\">
                        <input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">