diff options
author | Alexander Barkov <bar@mariadb.org> | 2014-11-03 21:45:06 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2014-11-03 21:45:06 +0400 |
commit | 43f185e171eecdce41e71c548ce0bc2bd6969c0f (patch) | |
tree | ef2a7c8ea219bb66aeb1532eedfae9268f9f3ae1 /scripts | |
parent | a245543bc8821b15409b839197d911302fb5bfb0 (diff) | |
download | mariadb-git-43f185e171eecdce41e71c548ce0bc2bd6969c0f.tar.gz |
MDEV-5528 Command line variable to choose MariaDB-5.3 vs MySQL-5.6 temporal data formats
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_system_tables_fix.sql | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/mysql_system_tables_fix.sql b/scripts/mysql_system_tables_fix.sql index a7837b40e99..b9bb59cb188 100644 --- a/scripts/mysql_system_tables_fix.sql +++ b/scripts/mysql_system_tables_fix.sql @@ -656,6 +656,11 @@ set @str=if(@have_innodb <> 0, @str, "set @dummy = 0"); prepare stmt from @str; execute stmt; +set @str="alter table mysql.innodb_table_stats modify last_update timestamp not null default current_timestamp on update current_timestamp"; +set @str=if(@have_innodb <> 0, @str, "set @dummy = 0"); +prepare stmt from @str; +execute stmt; + set @str=replace(@str, "innodb_index_stats", "innodb_table_stats"); prepare stmt from @str; execute stmt; |