~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/sys_vars/t/slave_pending_jobs_size_max_basic.test

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/not_embedded.inc
 
2
 
 
3
let $var= slave_pending_jobs_size_max;
 
4
eval set @save.$var= @@global.$var;
 
5
 
 
6
#
 
7
# exists as global only
 
8
#
 
9
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
 
10
eval select @@session.$var;
 
11
 
 
12
eval show global variables like '$var';
 
13
eval show session variables like '$var';
 
14
select * from information_schema.global_variables where variable_name='$var';
 
15
select * from information_schema.session_variables where variable_name='$var';
 
16
 
 
17
#
 
18
# show that it's writable
 
19
#
 
20
let $value= 0;
 
21
eval set @@global.$var= $value;
 
22
eval select @@global.$var;
 
23
 
 
24
#
 
25
# incorrect types
 
26
#
 
27
--error ER_WRONG_TYPE_FOR_VAR
 
28
eval set @@global.$var= 1.1;
 
29
--error ER_WRONG_TYPE_FOR_VAR
 
30
eval set @@global.$var= "foo";
 
31
 
 
32
#
 
33
# min/max values
 
34
#
 
35
eval set @@global.$var= 0;
 
36
eval set @@global.$var= cast(-1 as unsigned int);
 
37
eval select @@global.$var as "truncated to the maximum";
 
38
 
 
39
# cleanup
 
40
 
 
41
eval set @@global.$var= @save.$var;