~mathiaz/ubuntu/lucid/mysql-dfsg-5.1/zap-bug-552053

« back to all changes in this revision

Viewing changes to mysql-test/suite/sys_vars/r/log_warnings_basic_32.result

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (1.1.2 upstream) (0.1.3 experimental)
  • Revision ID: james.westby@ubuntu.com-20090625125545-m8ogs96zzsri74xe
Tags: 5.1.34-1ubuntu1
* Merge from debian experimental (and 5.0 from main), remaining changes:
  - debian/mysql-server-5.1.config:
    + ask for MySQL root password at priority high instead of medium so
      that the password prompt is seen on a default install. (LP: #319843)
    + don't ask for root password when upgrading from a 5.0 install.
  - debian/control:
    + Make libmysqlclient16-dev a transitional package depending on
      libmysqlclient-dev.
    + Make libmysqlclient-dev conflict with libmysqlclient15-dev.
    + Don't build mysql-server, mysql-client, mysql-common and
      libmysqlclient15-dev binary packages since they're still provided
      by mysql-dfsg-5.0.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
    + Lower mailx from a Recommends to a Suggests to avoid pulling in
      a full MTA on all installs of mysql-server. (LP: #259477)
  - debian/rules:
    + added -fno-strict-aliasing to CFLAGS to get around mysql testsuite
      build failures.
    + install mysql-test and sql-bench to /usr/share/mysql/ rather than
      /usr/.
  - debian/additions/debian-start.inc.sh: support ANSI mode (LP: #310211)
  - Add AppArmor profile:
    - debian/apparmor-profile: apparmor profile.
    - debian/rules, debian/mysql-server-5.0.files: install apparmor profile.
    - debian/mysql-server-5.0.dirs: add etc/apparmor.d/force-complain
    - debian/mysql-server-5.0.postrm: remove symlink in force-complain/ on
      purge.
    - debian/mysql-server-5.1.README.Debian: add apparmor documentation.
    - debian/additions/my.cnf: Add warning about apparmor. (LP: #201799)
    - debian/mysql-server-5.1.postinst: reload apparmor profiles.
  - debian/additions/my.cnf: remove language option. Error message files are
    located in a different directory in MySQL 5.0. Setting the language
    option to use /usr/share/mysql/english breaks 5.0. Both 5.0 and 5.1
    use a default value that works. (LP: #316974)
  - debian/mysql-server-5.1.mysql.init:
    + Clearly indicate that we do not support running multiple instances
      of mysqld by duplicating the init script.
      (closes: #314785, #324834, #435165, #444216)
    + Properly parameterize all existing references to the mysql config
      file (/etc/mysql/my.cnf).
  - debian/mysql-server-5.0.postinst: Clear out the second password
    when setting up mysql. (LP: #344816)
  - mysql-server-core-5.1 package for files needed by Akonadi:
    + debian/control: create mysql-server-core-5.1 package.
    + debian/mysql-server-core-5.1.files, debian/mysql-server-5.1.files:
      move core mysqld files to mysql-server-core-5.1 package.
  - Don't package sql-bench and mysql-test file.
* Dropped changes:
  - debian/patches/92_ssl_test_cert.dpatch: certificate expiration in
    test suite (LP: #323755). Included upstream.
* Dropped from 5.0:
  - apparmor profile:
    - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6. All version
      of apparmor-profile (>hardy) are higher than this version.
    - debian/mysql-server-5.0.preinst: create symlink for force-complain/
      on pre-feisty upgrades, upgrades where apparmor-profiles profile is
      unchanged (ie non-enforcing) and upgrades where the profile
      doesn't exist. Support for pre-hardy upgrades is no longer needed.
* debian/mysql-server-5.1.postinst: fix debian-sys-maint user creation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
SET @start_global_value = @@global.log_warnings;
2
 
SELECT @start_global_value;
3
 
@start_global_value
4
 
1
5
 
SET @start_session_value = @@session.log_warnings;
6
 
SELECT @start_session_value;
7
 
@start_session_value
8
 
1
9
 
'#--------------------FN_DYNVARS_067_01-------------------------#'
10
 
SET @@global.log_warnings = 100;
11
 
SET @@global.log_warnings = DEFAULT;
12
 
SELECT @@global.log_warnings;
13
 
@@global.log_warnings
14
 
1
15
 
SET @@session.log_warnings = 200;
16
 
SET @@session.log_warnings = DEFAULT;
17
 
SELECT @@session.log_warnings;
18
 
@@session.log_warnings
19
 
1
20
 
'#--------------------FN_DYNVARS_067_02-------------------------#'
21
 
SET @@global.log_warnings = DEFAULT;
22
 
SELECT @@global.log_warnings = 1;
23
 
@@global.log_warnings = 1
24
 
1
25
 
SET @@session.log_warnings = DEFAULT;
26
 
SELECT @@session.log_warnings = 1;
27
 
@@session.log_warnings = 1
28
 
1
29
 
'#--------------------FN_DYNVARS_067_03-------------------------#'
30
 
SET @@global.log_warnings = 0;
31
 
SELECT @@global.log_warnings;
32
 
@@global.log_warnings
33
 
0
34
 
SET @@global.log_warnings = 1;
35
 
SELECT @@global.log_warnings;
36
 
@@global.log_warnings
37
 
1
38
 
SET @@global.log_warnings = 60020;
39
 
SELECT @@global.log_warnings;
40
 
@@global.log_warnings
41
 
60020
42
 
SET @@global.log_warnings = 65535;
43
 
SELECT @@global.log_warnings;
44
 
@@global.log_warnings
45
 
65535
46
 
SET @@global.log_warnings = 65536;
47
 
SELECT @@global.log_warnings;
48
 
@@global.log_warnings
49
 
65536
50
 
'#--------------------FN_DYNVARS_067_04-------------------------#'
51
 
SET @@session.log_warnings = 0;
52
 
SELECT @@session.log_warnings;
53
 
@@session.log_warnings
54
 
0
55
 
SET @@session.log_warnings = 1;
56
 
SELECT @@session.log_warnings;
57
 
@@session.log_warnings
58
 
1
59
 
SET @@session.log_warnings = 50050;
60
 
SELECT @@session.log_warnings;
61
 
@@session.log_warnings
62
 
50050
63
 
SET @@session.log_warnings = 65535;
64
 
SELECT @@session.log_warnings;
65
 
@@session.log_warnings
66
 
65535
67
 
SET @@session.log_warnings = 65550;
68
 
SELECT @@session.log_warnings;
69
 
@@session.log_warnings
70
 
65550
71
 
'#------------------FN_DYNVARS_067_05-----------------------#'
72
 
SET @@global.log_warnings = 100000000000;
73
 
Warnings:
74
 
Warning 1292    Truncated incorrect log-warnings value: '100000000000'
75
 
SELECT @@global.log_warnings;
76
 
@@global.log_warnings
77
 
4294967295
78
 
SET @@global.log_warnings = -1024;
79
 
SELECT @@global.log_warnings;
80
 
@@global.log_warnings
81
 
0
82
 
SET @@global.log_warnings = 65530.34.;
83
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
84
 
SELECT @@global.log_warnings;
85
 
@@global.log_warnings
86
 
0
87
 
SET @@global.log_warnings = test;
88
 
ERROR 42000: Incorrect argument type to variable 'log_warnings'
89
 
SELECT @@global.log_warnings;
90
 
@@global.log_warnings
91
 
0
92
 
SET @@session.log_warnings = 100000000000;
93
 
Warnings:
94
 
Warning 1292    Truncated incorrect log-warnings value: '100000000000'
95
 
SELECT @@session.log_warnings;
96
 
@@session.log_warnings
97
 
4294967295
98
 
SET @@session.log_warnings = -2;
99
 
SELECT @@session.log_warnings;
100
 
@@session.log_warnings
101
 
0
102
 
SET @@session.log_warnings = 65530.34.;
103
 
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
104
 
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
105
 
SET @@session.log_warnings = test;
106
 
ERROR 42000: Incorrect argument type to variable 'log_warnings'
107
 
SELECT @@session.log_warnings;
108
 
@@session.log_warnings
109
 
0
110
 
'#------------------FN_DYNVARS_067_06-----------------------#'
111
 
SELECT @@global.log_warnings = VARIABLE_VALUE 
112
 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
113
 
WHERE VARIABLE_NAME='log_warnings';
114
 
@@global.log_warnings = VARIABLE_VALUE
115
 
1
116
 
'#------------------FN_DYNVARS_067_07-----------------------#'
117
 
SELECT @@session.log_warnings = VARIABLE_VALUE 
118
 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
119
 
WHERE VARIABLE_NAME='log_warnings';
120
 
@@session.log_warnings = VARIABLE_VALUE
121
 
1
122
 
'#------------------FN_DYNVARS_067_08-----------------------#'
123
 
SET @@global.log_warnings = TRUE;
124
 
SELECT @@global.log_warnings;
125
 
@@global.log_warnings
126
 
1
127
 
SET @@global.log_warnings = FALSE;
128
 
SELECT @@global.log_warnings;
129
 
@@global.log_warnings
130
 
0
131
 
'#---------------------FN_DYNVARS_067_09----------------------#'
132
 
SET @@global.log_warnings = 10;
133
 
SELECT @@log_warnings = @@global.log_warnings;
134
 
@@log_warnings = @@global.log_warnings
135
 
0
136
 
'#---------------------FN_DYNVARS_067_10----------------------#'
137
 
SET @@log_warnings = 100;
138
 
SELECT @@log_warnings = @@local.log_warnings;
139
 
@@log_warnings = @@local.log_warnings
140
 
1
141
 
SELECT @@local.log_warnings = @@session.log_warnings;
142
 
@@local.log_warnings = @@session.log_warnings
143
 
1
144
 
'#---------------------FN_DYNVARS_067_11----------------------#'
145
 
SET log_warnings = 1;
146
 
SELECT @@log_warnings;
147
 
@@log_warnings
148
 
1
149
 
SELECT local.log_warnings;
150
 
ERROR 42S02: Unknown table 'local' in field list
151
 
SELECT session.log_warnings;
152
 
ERROR 42S02: Unknown table 'session' in field list
153
 
SELECT log_warnings = @@session.log_warnings;
154
 
ERROR 42S22: Unknown column 'log_warnings' in 'field list'
155
 
SET @@global.log_warnings = @start_global_value;
156
 
SELECT @@global.log_warnings;
157
 
@@global.log_warnings
158
 
1
159
 
SET @@session.log_warnings = @start_session_value;
160
 
SELECT @@session.log_warnings;
161
 
@@session.log_warnings
162
 
1