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

« back to all changes in this revision

Viewing changes to mysql-test/r/partition_error.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
1
drop table if exists t1;
 
2
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
 
3
INSERT INTO t1 VALUES (1),(1);
 
4
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
 
5
DROP TABLE t1;
 
6
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
 
7
PARTITION BY KEY (a) PARTITIONS 2;
 
8
INSERT INTO t1 VALUES (1),(1);
 
9
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
 
10
DROP TABLE t1;
2
11
CREATE TABLE t1 (a INT)
3
12
PARTITION BY HASH (a)
4
13
( PARTITION p0 ENGINE=MyISAM,
87
96
partition x2 tablespace ts2,
88
97
partition x3 tablespace ts3);
89
98
ERROR HY000: Field in list of fields for partition function not found in table
90
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
91
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
99
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
100
load_file('$MYSQLD_DATADIR/test/t1.par')
92
101
NULL
93
102
CREATE TABLE t1 (
94
103
a int not null,
164
173
(partition x1 values less than (4),
165
174
partition x2 values less than (5));
166
175
ERROR HY000: Only RANGE PARTITIONING can use VALUES LESS THAN in partition definition
167
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
168
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
176
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
177
load_file('$MYSQLD_DATADIR/test/t1.par')
169
178
NULL
170
179
CREATE TABLE t1 (
171
180
a int not null,
177
186
(partition x1 values in (4),
178
187
partition x2 values in (5));
179
188
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
180
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
181
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
189
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
190
load_file('$MYSQLD_DATADIR/test/t1.par')
182
191
NULL
183
192
CREATE TABLE t1 (
184
193
a int not null,
190
199
(partition x1 values in (4,6),
191
200
partition x2 values in (5,7));
192
201
ERROR HY000: Only LIST PARTITIONING can use VALUES IN in partition definition
193
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
194
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
195
 
NULL
196
 
CREATE TABLE t1 (
197
 
a int not null,
198
 
b int not null,
199
 
c int not null,
200
 
primary key (a,b))
201
 
partition by key (a)
202
 
subpartition by key (b);
203
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
204
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
205
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
206
 
NULL
207
 
CREATE TABLE t1 (
208
 
a int not null,
209
 
b int not null,
210
 
c int not null,
211
 
primary key (a,b))
212
 
partition by key (a)
213
 
subpartition by key (a, b);
214
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
215
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
216
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
217
 
NULL
218
 
CREATE TABLE t1 (
219
 
a int not null,
220
 
b int not null,
221
 
c int not null,
222
 
primary key (a,b))
223
 
partition by key (a)
224
 
subpartition by hash (a+b);
225
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
226
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
227
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
228
 
NULL
229
 
CREATE TABLE t1 (
230
 
a int not null,
231
 
b int not null,
232
 
c int not null,
233
 
primary key (a,b))
234
 
partition by key (a)
235
 
subpartition by key (b);
236
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
237
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
238
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
239
 
NULL
240
 
CREATE TABLE t1 (
241
 
a int not null,
242
 
b int not null,
243
 
c int not null,
244
 
primary key (a,b))
245
 
partition by key (a)
246
 
subpartition by key (a, b);
247
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
248
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
249
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
250
 
NULL
251
 
CREATE TABLE t1 (
252
 
a int not null,
253
 
b int not null,
254
 
c int not null,
255
 
primary key (a,b))
256
 
partition by key (a)
257
 
subpartition by hash (a+b);
258
 
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
259
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
260
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
202
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
203
load_file('$MYSQLD_DATADIR/test/t1.par')
 
204
NULL
 
205
CREATE TABLE t1 (
 
206
a int not null,
 
207
b int not null,
 
208
c int not null,
 
209
primary key (a,b))
 
210
partition by key (a)
 
211
subpartition by key (b);
 
212
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
213
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
214
load_file('$MYSQLD_DATADIR/test/t1.par')
 
215
NULL
 
216
CREATE TABLE t1 (
 
217
a int not null,
 
218
b int not null,
 
219
c int not null,
 
220
primary key (a,b))
 
221
partition by key (a)
 
222
subpartition by key (a, b);
 
223
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
224
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
225
load_file('$MYSQLD_DATADIR/test/t1.par')
 
226
NULL
 
227
CREATE TABLE t1 (
 
228
a int not null,
 
229
b int not null,
 
230
c int not null,
 
231
primary key (a,b))
 
232
partition by key (a)
 
233
subpartition by hash (a+b);
 
234
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
235
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
236
load_file('$MYSQLD_DATADIR/test/t1.par')
 
237
NULL
 
238
CREATE TABLE t1 (
 
239
a int not null,
 
240
b int not null,
 
241
c int not null,
 
242
primary key (a,b))
 
243
partition by key (a)
 
244
subpartition by key (b);
 
245
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
246
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
247
load_file('$MYSQLD_DATADIR/test/t1.par')
 
248
NULL
 
249
CREATE TABLE t1 (
 
250
a int not null,
 
251
b int not null,
 
252
c int not null,
 
253
primary key (a,b))
 
254
partition by key (a)
 
255
subpartition by key (a, b);
 
256
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
257
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
258
load_file('$MYSQLD_DATADIR/test/t1.par')
 
259
NULL
 
260
CREATE TABLE t1 (
 
261
a int not null,
 
262
b int not null,
 
263
c int not null,
 
264
primary key (a,b))
 
265
partition by key (a)
 
266
subpartition by hash (a+b);
 
267
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
 
268
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
269
load_file('$MYSQLD_DATADIR/test/t1.par')
261
270
NULL
262
271
CREATE TABLE t1 (
263
272
a int not null,
277
286
(partition x1 (subpartition x11, subpartition x12),
278
287
partition x2 (subpartition x21, subpartition x22));
279
288
ERROR HY000: It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning
280
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
281
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
289
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
290
load_file('$MYSQLD_DATADIR/test/t1.par')
282
291
NULL
283
292
CREATE TABLE t1 (
284
293
a int not null,
302
311
(partition x1 values less than (1) (subpartition x11, subpartition x12),
303
312
partition x2 values less than (2) (subpartition x21, subpartition x22));
304
313
ERROR HY000: Field in list of fields for partition function not found in table
305
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
306
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
314
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
315
load_file('$MYSQLD_DATADIR/test/t1.par')
307
316
NULL
308
317
CREATE TABLE t1 (
309
318
a int not null,
330
339
primary key(a,b))
331
340
partition by range (a);
332
341
ERROR HY000: For RANGE partitions each partition must be defined
333
 
select load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par');
334
 
load_file('$MYSQLTEST_VARDIR/master-data/test/t1.par')
 
342
select load_file('$MYSQLD_DATADIR/test/t1.par');
 
343
load_file('$MYSQLD_DATADIR/test/t1.par')
335
344
NULL
336
345
CREATE TABLE t1 (
337
346
a int not null,