~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/include/rowid_order.inc

Removed/replaced BUG symbols and standardized TRUE/FALSE

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
# Signed number as rowid
26
26
create table t1 (
27
27
  pk1 int not NULL,
28
 
  key1 int,
29
 
  key2 int,
 
28
  key1 int(11),
 
29
  key2 int(11),
30
30
  PRIMARY KEY  (pk1),
31
31
  KEY key1 (key1),
32
32
  KEY key2 (key2)
42
42
 
43
43
# Unsigned numbers as rowids
44
44
create table t1 (
45
 
  pk1 int not NULL,
46
 
  key1 int,
47
 
  key2 int,
 
45
  pk1 int unsigned not NULL,
 
46
  key1 int(11),
 
47
  key2 int(11),
48
48
  PRIMARY KEY  (pk1),
49
49
  KEY key1 (key1),
50
50
  KEY key2 (key2)
51
51
);
52
52
insert into t1 values (0, 1, 1),
53
 
  (0x00FFFFFF, 1, 1),
54
 
  (0x00FFFFFE, 1, 1),
 
53
  (0xFFFFFFFF, 1, 1),
 
54
  (0xFFFFFFFE, 1, 1),
55
55
  (1, 1, 1),
56
56
  (2, 1, 1);
57
57
select * from t1 force index(key1, key2) where key1 < 3 or key2 < 3;
60
60
# Case-insensitive char(N)
61
61
create table t1 (
62
62
  pk1 char(4) not NULL,
63
 
  key1 int,
64
 
  key2 int,
 
63
  key1 int(11),
 
64
  key2 int(11),
65
65
  PRIMARY KEY  (pk1),
66
66
  KEY key1 (key1),
67
67
  KEY key2 (key2)
68
 
) collate utf8_general_ci;
 
68
) collate latin2_general_ci;
69
69
insert into t1 values ('a1', 1, 1),
70
70
  ('b2', 1, 1),
71
71
  ('A3', 1, 1),
76
76
# Multi-part PK
77
77
create table t1 (
78
78
  pk1 int not NULL,
79
 
  pk2 char(4) not NULL,
80
 
  pk3 char(4) not NULL collate utf8_bin,
81
 
  key1 int,
82
 
  key2 int,
 
79
  pk2 char(4) not NULL collate latin1_german1_ci,
 
80
  pk3 char(4) not NULL collate latin1_bin,
 
81
  key1 int(11),
 
82
  key2 int(11),
83
83
  PRIMARY KEY  (pk1,pk2,pk3),
84
84
  KEY key1 (key1),
85
85
  KEY key2 (key2)
86
86
);
87
87
insert into t1 values
88
88
  (1, 'u', 'u',        1, 1),
89
 
  (1, 'u', 'b', 1, 1),
 
89
  (1, 'u', char(0xEC), 1, 1),
90
90
  (1, 'u', 'x',        1, 1);
91
91
insert ignore into t1 select pk1, char(0xEC), pk3, key1, key2  from t1;
92
92
insert ignore into t1 select pk1, 'x', pk3, key1, key2  from t1 where pk2='u';
105
105
create table t1  (
106
106
  pk1 varchar(8) NOT NULL default '',
107
107
  pk2 varchar(4) NOT NULL default '',
108
 
  key1 int,
109
 
  key2 int,
 
108
  key1 int(11),
 
109
  key2 int(11),
110
110
  primary key(pk1, pk2),
111
111
  KEY key1 (key1),
112
112
  KEY key2 (key2)