From: Andrew Dolgov Date: Sat, 25 Aug 2007 15:49:13 +0000 (+0100) Subject: mysql_convert_unicode: add transaction block X-Git-Tag: 1.2.15~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1a25307ae79ceb8ffc07aa5486680f61a038548f;p=tt-rss.git mysql_convert_unicode: add transaction block --- diff --git a/mysql_convert_unicode.php b/mysql_convert_unicode.php index dfc833b4..6fe72994 100644 --- a/mysql_convert_unicode.php +++ b/mysql_convert_unicode.php @@ -81,6 +81,7 @@ function confirmOP() { print "

".__("Converting database...")."

"; + 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 "