mysql_convert_unicode: add transaction block

This commit is contained in:
Andrew Dolgov 2007-08-25 16:49:13 +01:00
parent 18ab3d7ae1
commit 1a25307ae7
1 changed files with 2 additions and 0 deletions

View 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")."\">