From 1a25307ae79ceb8ffc07aa5486680f61a038548f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Aug 2007 16:49:13 +0100 Subject: [PATCH] mysql_convert_unicode: add transaction block --- mysql_convert_unicode.php | 2 ++ 1 file changed, 2 insertions(+) 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 "
-- 2.39.5