~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb/t/innodb_bug47167.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This is the unit test for bug *47167.
 
2
# It tests setting the global variable
 
3
# "innodb_file_format_check" with a
 
4
# user-Defined Variable.
 
5
 
 
6
--source include/have_innodb.inc
 
7
-- source suite/innodb/include/have_innodb_plugin.inc
 
8
 
 
9
# Save the value (Antelope) in 'innodb_file_format_check' to
 
10
# 'old_innodb_file_format_check'
 
11
set @old_innodb_file_format_check=@@innodb_file_format_check;
 
12
 
 
13
# @old_innodb_file_format_check shall have the value of 'Antelope'
 
14
select @old_innodb_file_format_check;
 
15
 
 
16
# Reset the value in 'innodb_file_format_check' to 'Barracuda'
 
17
set global innodb_file_format_check = Barracuda;
 
18
 
 
19
select @@innodb_file_format_check;
 
20
 
 
21
# Set 'innodb_file_format_check' to its default value, which
 
22
# is the latest file format supported in the current release.
 
23
set global innodb_file_format_check = DEFAULT;
 
24
 
 
25
select @@innodb_file_format_check;
 
26
 
 
27
# Put the saved value back to 'innodb_file_format_check'
 
28
set global innodb_file_format_check = @old_innodb_file_format_check;
 
29
 
 
30
# Check whether 'innodb_file_format_check' get its original value.
 
31
select @@innodb_file_format_check;
 
32
 
 
33
# Following are negative tests, all should fail.
 
34
--disable_warnings
 
35
--error ER_WRONG_ARGUMENTS
 
36
set global innodb_file_format_check = cheetah;
 
37
 
 
38
--error ER_WRONG_ARGUMENTS
 
39
set global innodb_file_format_check = Bear;
 
40
 
 
41
--error ER_WRONG_ARGUMENTS
 
42
set global innodb_file_format_check = on;
 
43
 
 
44
--error ER_WRONG_ARGUMENTS
 
45
set global innodb_file_format_check = off;
 
46
--enable_warnings