diff options
author | unknown <msvensson@pilot.blaudden> | 2007-05-19 18:15:08 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-05-19 18:15:08 +0200 |
commit | f52f931f4ba539fdd6aecc6a41f88e801187b708 (patch) | |
tree | 866205fb4f1699d623d7ee1fc8b5da8fb5ad342b /scripts | |
parent | f35dd614973ecb2f92a2411b6dac319278fe2ec3 (diff) | |
download | mariadb-git-f52f931f4ba539fdd6aecc6a41f88e801187b708.tar.gz |
Bug #28401 mysql_upgrade Failed with STRICT_ALL_TABLES, ANSI_QUOTES and NO_ZERO_DATE
- The SQL commands used by mysql_upgrade are written to be run
with sql_mode set to '' - thus the scripts should change sql_mode
for the session to make sure the SQL is legal.
mysql-test/r/mysql_upgrade.result:
Update test result
mysql-test/t/mysql_upgrade.test:
The SQL commands used by mysql_upgrade are written to be run
with sql_mode set to '' - thus the scripts should change sql_mode
for the session to make sure the SQL is legal.
scripts/mysql_system_tables_fix.sql:
Set sql_mode to '' before running the SQL commands
to fix system tables - backport from 5.1
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_system_tables_fix.sql | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mysql_system_tables_fix.sql b/scripts/mysql_system_tables_fix.sql index 205bc93efea..c8334339b32 100644 --- a/scripts/mysql_system_tables_fix.sql +++ b/scripts/mysql_system_tables_fix.sql @@ -9,6 +9,7 @@ # this sql script. # On windows you should do 'mysql --force mysql < mysql_fix_privilege_tables.sql' +set sql_mode=''; set storage_engine=MyISAM; ALTER TABLE user add File_priv enum('N','Y') COLLATE utf8_general_ci NOT NULL; |