Ticket #6013: mythtv-6013-restore-handle_character_set_for_partial_restore.patch
File mythtv-6013-restore-handle_character_set_for_partial_restore.patch, 1.1 KB (added by , 15 years ago) |
---|
-
programs/scripts/database/mythconverg_restore.pl
old new 13 13 14 14 # Script info 15 15 $NAME = 'MythTV Database Restore Script'; 16 $VERSION = '1.0. 2';16 $VERSION = '1.0.3'; 17 17 18 18 # Some variables we'll use here 19 19 our ($username, $homedir, $mythconfdir, $database_information_file); … … 1435 1435 { 1436 1436 $filter = '^INSERT INTO \`(' . 1437 1437 join('|', @partial_restore_tables) . ')\` '; 1438 # If doing a whitelist restore, ensure we keep the character 1439 # set info to prevent data corruption 1440 if (!defined($with_plugin_data)) 1441 { 1442 $filter = '(40101 SET NAMES |'.$filter.')'; 1443 } 1438 1444 verbose($verbose_level_debug, 1439 1445 "\nRestoring partial backup with filter:", $filter); 1440 1446 }