simple-backup icon indicating copy to clipboard operation
simple-backup copied to clipboard

simple-backup/src/Foundation/Configurator.php Error

Open chriscolombos opened this issue 1 year ago • 0 comments

Line 52: $contents .= "\r\n\r\nSET SQL_MODE = \"NO_AUTO_VALUE_ON_ZERO\";\r\nSET AUTOCOMMIT = 0;\r\nSTART TRANSACTION;\r\nSET time_zone = \"+00:00\"\r\n\r\n--\r\n-- Database: " . $config['db_name'] . "\r\n-- Total Tables: {$config['total_tables']}\r\n--\r\n\r\n";

  • SET time_zone = \"+00:00\" missing a semicolon after \"+00:00\"
  • As a result, this query is displayed in the generated backup file as follows:
  • SET time_zone = "+00:00"
  • Without a semicolon.

chriscolombos avatar Apr 23 '23 14:04 chriscolombos