~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to mysql-test/t/log_tables_upgrade.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/not_embedded.inc
 
2
--source include/have_csv.inc
 
3
 
 
4
# Only run test if "mysql_upgrade" is found
 
5
--require r/have_mysql_upgrade.result
 
6
--disable_query_log
 
7
select LENGTH("$MYSQL_UPGRADE")>0 as have_mysql_upgrade;
 
8
--enable_query_log
 
9
 
 
10
--echo #
 
11
--echo # Bug#49823: mysql_upgrade fatal error due to general_log / slow_low CSV NULL
 
12
--echo #
 
13
 
 
14
USE test;
 
15
 
 
16
let $MYSQLD_DATADIR= `SELECT @@datadir`;
 
17
copy_file std_data/bug49823.frm $MYSQLD_DATADIR/test/bug49823.frm;
 
18
copy_file std_data/bug49823.CSM $MYSQLD_DATADIR/test/bug49823.CSM;
 
19
copy_file std_data/bug49823.CSV $MYSQLD_DATADIR/test/bug49823.CSV;
 
20
 
 
21
SET @saved_general_log = @@GLOBAL.general_log;
 
22
SET GLOBAL general_log = OFF;
 
23
USE mysql;
 
24
FLUSH TABLES;
 
25
REPAIR TABLE test.bug49823;
 
26
RENAME TABLE general_log TO renamed_general_log;
 
27
RENAME TABLE test.bug49823 TO general_log;
 
28
--exec $MYSQL_UPGRADE --skip-verbose --force 2>&1
 
29
DROP TABLE general_log;
 
30
RENAME TABLE renamed_general_log TO general_log;
 
31
SET GLOBAL general_log = @saved_general_log;
 
32
USE test;