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

« back to all changes in this revision

Viewing changes to mysql-test/r/max_allowed_packet_basic.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.max_allowed_packet;
2
 
SELECT @start_global_value;
3
 
@start_global_value
4
 
1048576
5
 
SET @@global.max_allowed_packet = DEFAULT;
6
 
'#--------------------FN_DYNVARS_070_01-------------------------#'
7
 
SET @@global.max_allowed_packet = 1000;
8
 
Warnings:
9
 
Warning 1292    Truncated incorrect max_allowed_packet value: '1000'
10
 
SET @@global.max_allowed_packet = DEFAULT;
11
 
SELECT @@global.max_allowed_packet;
12
 
@@global.max_allowed_packet
13
 
1048576
14
 
SET @@session.max_allowed_packet = 20000;
15
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
16
 
SET @@session.max_allowed_packet = DEFAULT;
17
 
ERROR 42000: Variable 'max_allowed_packet' doesn't have a default value
18
 
SELECT @@session.max_allowed_packet;
19
 
@@session.max_allowed_packet
20
 
1048576
21
 
'#--------------------FN_DYNVARS_070_02-------------------------#'
22
 
SET @@global.max_allowed_packet = DEFAULT;
23
 
SELECT @@global.max_allowed_packet = 1048576;
24
 
@@global.max_allowed_packet = 1048576
25
 
1
26
 
'#--------------------FN_DYNVARS_070_03-------------------------#'
27
 
SET @@global.max_allowed_packet = 1024;
28
 
SELECT @@global.max_allowed_packet;
29
 
@@global.max_allowed_packet
30
 
1024
31
 
SET @@global.max_allowed_packet = 1025;
32
 
SELECT @@global.max_allowed_packet;
33
 
@@global.max_allowed_packet
34
 
1024
35
 
: 'Bug# 34841:  "Invalid values are coming in variable on assigning valid value';
36
 
SET @@global.max_allowed_packet = 1073741824;
37
 
SELECT @@global.max_allowed_packet;
38
 
@@global.max_allowed_packet
39
 
1073741824
40
 
SET @@global.max_allowed_packet = 1073741823;
41
 
SELECT @@global.max_allowed_packet;
42
 
@@global.max_allowed_packet
43
 
1073740800
44
 
'#--------------------FN_DYNVARS_070_04-------------------------#'
45
 
SET @@session.max_allowed_packet = 1024;
46
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
47
 
SELECT @@session.max_allowed_packet;
48
 
@@session.max_allowed_packet
49
 
1048576
50
 
SET @@session.max_allowed_packet = 1025;
51
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
52
 
SELECT @@session.max_allowed_packet;
53
 
@@session.max_allowed_packet
54
 
1048576
55
 
SET @@session.max_allowed_packet = 65535;
56
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
57
 
SELECT @@session.max_allowed_packet;
58
 
@@session.max_allowed_packet
59
 
1048576
60
 
SET @@session.max_allowed_packet = 1073741824;
61
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
62
 
SELECT @@session.max_allowed_packet;
63
 
@@session.max_allowed_packet
64
 
1048576
65
 
SET @@session.max_allowed_packet = 1073741823;
66
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
67
 
SELECT @@session.max_allowed_packet;
68
 
@@session.max_allowed_packet
69
 
1048576
70
 
'#------------------FN_DYNVARS_070_05-----------------------#'
71
 
SET @@global.max_allowed_packet = 0;
72
 
Warnings:
73
 
Warning 1292    Truncated incorrect max_allowed_packet value: '0'
74
 
SELECT @@global.max_allowed_packet;
75
 
@@global.max_allowed_packet
76
 
1024
77
 
SET @@global.max_allowed_packet = -1024;
78
 
Warnings:
79
 
Warning 1292    Truncated incorrect max_allowed_packet value: '0'
80
 
SELECT @@global.max_allowed_packet;
81
 
@@global.max_allowed_packet
82
 
1024
83
 
SET @@global.max_allowed_packet = 1023;
84
 
Warnings:
85
 
Warning 1292    Truncated incorrect max_allowed_packet value: '1023'
86
 
SELECT @@global.max_allowed_packet;
87
 
@@global.max_allowed_packet
88
 
1024
89
 
SET @@global.max_allowed_packet = 10737418241;
90
 
Warnings:
91
 
Warning 1292    Truncated incorrect max_allowed_packet value: '10737418241'
92
 
SELECT @@global.max_allowed_packet;
93
 
@@global.max_allowed_packet
94
 
1073741824
95
 
SET @@global.max_allowed_packet = 65530.34.;
96
 
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
97
 
SELECT @@global.max_allowed_packet;
98
 
@@global.max_allowed_packet
99
 
1073741824
100
 
SET @@global.max_allowed_packet = test;
101
 
ERROR 42000: Incorrect argument type to variable 'max_allowed_packet'
102
 
SELECT @@global.max_allowed_packet;
103
 
@@global.max_allowed_packet
104
 
1073741824
105
 
SET @@session.max_allowed_packet = 0;
106
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
107
 
SELECT @@session.max_allowed_packet;
108
 
@@session.max_allowed_packet
109
 
1048576
110
 
SET @@session.max_allowed_packet = 1023;
111
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
112
 
SELECT @@session.max_allowed_packet;
113
 
@@session.max_allowed_packet
114
 
1048576
115
 
SET @@session.max_allowed_packet = -2;
116
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
117
 
SELECT @@session.max_allowed_packet;
118
 
@@session.max_allowed_packet
119
 
1048576
120
 
SET @@session.max_allowed_packet = 65530.34.;
121
 
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
122
 
SET @@session.max_allowed_packet = 10737418241;
123
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
124
 
SELECT @@session.max_allowed_packet;
125
 
@@session.max_allowed_packet
126
 
1048576
127
 
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
128
 
SET @@session.max_allowed_packet = test;
129
 
ERROR 42000: Incorrect argument type to variable 'max_allowed_packet'
130
 
SELECT @@session.max_allowed_packet;
131
 
@@session.max_allowed_packet
132
 
1048576
133
 
'#------------------FN_DYNVARS_070_06-----------------------#'
134
 
SELECT @@global.max_allowed_packet = VARIABLE_VALUE 
135
 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
136
 
WHERE VARIABLE_NAME='max_allowed_packet';
137
 
@@global.max_allowed_packet = VARIABLE_VALUE
138
 
1
139
 
'#------------------FN_DYNVARS_070_07-----------------------#'
140
 
SELECT @@session.max_allowed_packet = VARIABLE_VALUE 
141
 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
142
 
WHERE VARIABLE_NAME='max_allowed_packet';
143
 
@@session.max_allowed_packet = VARIABLE_VALUE
144
 
1
145
 
'#------------------FN_DYNVARS_070_08-----------------------#'
146
 
SET @@global.max_allowed_packet = TRUE;
147
 
Warnings:
148
 
Warning 1292    Truncated incorrect max_allowed_packet value: '1'
149
 
SELECT @@global.max_allowed_packet;
150
 
@@global.max_allowed_packet
151
 
1024
152
 
SET @@global.max_allowed_packet = FALSE;
153
 
Warnings:
154
 
Warning 1292    Truncated incorrect max_allowed_packet value: '0'
155
 
SELECT @@global.max_allowed_packet;
156
 
@@global.max_allowed_packet
157
 
1024
158
 
'#---------------------FN_DYNVARS_070_09----------------------#'
159
 
SET @@global.max_allowed_packet = 2048;
160
 
SELECT @@max_allowed_packet = @@global.max_allowed_packet;
161
 
@@max_allowed_packet = @@global.max_allowed_packet
162
 
0
163
 
'#---------------------FN_DYNVARS_070_10----------------------#'
164
 
SET @@max_allowed_packet = 100000;
165
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
166
 
SELECT @@max_allowed_packet = @@local.max_allowed_packet;
167
 
@@max_allowed_packet = @@local.max_allowed_packet
168
 
1
169
 
SELECT @@local.max_allowed_packet = @@session.max_allowed_packet;
170
 
@@local.max_allowed_packet = @@session.max_allowed_packet
171
 
1
172
 
'#---------------------FN_DYNVARS_070_11----------------------#'
173
 
SET max_allowed_packet = 1024;
174
 
ERROR HY000: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value
175
 
SELECT @@max_allowed_packet;
176
 
@@max_allowed_packet
177
 
1048576
178
 
SELECT local.max_allowed_packet;
179
 
ERROR 42S02: Unknown table 'local' in field list
180
 
SELECT session.max_allowed_packet;
181
 
ERROR 42S02: Unknown table 'session' in field list
182
 
SELECT max_allowed_packet = @@session.max_allowed_packet;
183
 
ERROR 42S22: Unknown column 'max_allowed_packet' in 'field list'
184
 
SET @@global.max_allowed_packet = @start_global_value;
185
 
SELECT @@global.max_allowed_packet;
186
 
@@global.max_allowed_packet
187
 
1048576
188
 
SELECT @@session.max_allowed_packet;
189
 
@@session.max_allowed_packet
190
 
1048576