~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/endspace.result

  • Committer: Brian Aker
  • Date: 2009-02-05 09:11:16 UTC
  • Revision ID: brian@tangent.org-20090205091116-iy0ersp6bhyzt1ad
Removed dead variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
explain select * from t1 order by text1;
46
46
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
47
47
1       SIMPLE  t1      index   NULL    key1    130     NULL    3       Using index
48
 
alter table t1 modify text1 char(32) not null;
 
48
alter table t1 modify text1 char(32) binary not null;
49
49
check table t1;
50
50
Table   Op      Msg_type        Msg_text
51
51
test.t1 check   status  OK
66
66
nothing 7
67
67
teststring              11
68
68
teststring      10
69
 
select text1, length(text1) from t1 order by text1;
 
69
select text1, length(text1) from t1 order by binary text1;
70
70
text1   length(text1)
71
71
nothing 7
 
72
teststring      10
72
73
teststring              11
73
 
teststring      10
74
74
alter table t1 modify text1 blob not null, drop key key1, add key key1 (text1(20));
75
75
insert into t1 values ('teststring ');
76
76
select concat('|', text1, '|') from t1 order by text1;
81
81
|teststring |
82
82
select concat('|', text1, '|') from t1 where text1='teststring' or text1 > 'teststring\t';
83
83
concat('|', text1, '|')
84
 
|teststring |
85
 
|teststring|
86
 
select concat('|', text1, '|') from t1 where text1='teststring';
87
 
concat('|', text1, '|')
88
 
|teststring|
89
 
select concat('|', text1, '|') from t1 where text1='teststring ';
90
 
concat('|', text1, '|')
91
 
|teststring |
92
 
alter table t1 modify text1 text not null;
93
 
select concat('|', text1, '|') from t1 where text1='teststring';
94
 
concat('|', text1, '|')
95
 
|teststring |
96
 
|teststring|
97
 
select concat('|', text1, '|') from t1 where text1='teststring ';
98
 
concat('|', text1, '|')
99
 
|teststring |
100
 
|teststring|
 
84
|teststring|
 
85
|teststring |
 
86
select concat('|', text1, '|') from t1 where text1='teststring';
 
87
concat('|', text1, '|')
 
88
|teststring|
 
89
select concat('|', text1, '|') from t1 where text1='teststring ';
 
90
concat('|', text1, '|')
 
91
|teststring |
 
92
alter table t1 modify text1 text not null, pack_keys=1;
 
93
select concat('|', text1, '|') from t1 where text1='teststring';
 
94
concat('|', text1, '|')
 
95
|teststring|
 
96
|teststring |
 
97
select concat('|', text1, '|') from t1 where text1='teststring ';
 
98
concat('|', text1, '|')
 
99
|teststring|
 
100
|teststring |
101
101
explain select concat('|', text1, '|') from t1 where text1='teststring ';
102
102
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
103
103
1       SIMPLE  t1      ref     key1    key1    82      const   2       Using where
108
108
select concat('|', text1, '|') from t1 where text1='teststring' or text1 like 'teststring_%';
109
109
concat('|', text1, '|')
110
110
|teststring     |
111
 
|teststring |
112
111
|teststring|
 
112
|teststring |
113
113
select concat('|', text1, '|') from t1 where text1='teststring' or text1 > 'teststring\t';
114
114
concat('|', text1, '|')
 
115
|teststring|
115
116
|teststring |
116
 
|teststring|
117
117
select concat('|', text1, '|') from t1 order by text1;
118
118
concat('|', text1, '|')
119
119
|nothing|
121
121
|teststring|
122
122
|teststring |
123
123
drop table t1;
124
 
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1));
 
124
create table t1 (text1 varchar(32) not NULL, KEY key1 (text1)) pack_keys=0;
125
125
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
126
126
select concat('|', text1, '|') from t1 where text1='teststring' or text1 like 'teststring_%';
127
127
concat('|', text1, '|')
132
132
|teststring     |
133
133
|teststring|
134
134
drop table t1;
135
 
create temporary table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=MEMORY;
 
135
create table t1 (text1 varchar(32) not NULL, KEY key1 using BTREE (text1)) engine=heap;
136
136
insert into t1 values ('teststring'), ('nothing'), ('teststring\t');
137
137
select * from t1 ignore key (key1) where text1='teststring' or 
138
138
text1 like 'teststring_%' ORDER BY text1;
141
141
teststring
142
142
select * from t1 where text1='teststring' or text1 like 'teststring_%';
143
143
text1
 
144
teststring      
144
145
teststring
145
 
teststring      
146
146
select * from t1 where text1='teststring' or text1 >= 'teststring\t';
147
147
text1
 
148
teststring      
148
149
teststring
149
 
teststring      
150
150
select * from t1 order by text1;
151
151
text1
152
152
nothing
155
155
explain select * from t1 order by text1;
156
156
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
157
157
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    3       Using filesort
158
 
alter table t1 modify text1 char(32) not null;
 
158
alter table t1 modify text1 char(32) binary not null;
159
159
select * from t1 order by text1;
160
160
text1
161
161
nothing
182
182
explain select * from t1 order by text1;
183
183
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
184
184
1       SIMPLE  t1      index   NULL    key1    130     NULL    3       Using index
185
 
alter table t1 modify text1 char(32) not null;
 
185
alter table t1 modify text1 char(32) binary not null;
186
186
select * from t1 order by text1;
187
187
text1
188
188
nothing
196
196
|teststring|
197
197
|teststring     |
198
198
|teststring |
199
 
alter table t1 modify text1 text not null;
 
199
alter table t1 modify text1 text not null, pack_keys=1;
200
200
select * from t1 where text1 like 'teststring_%';
201
201
text1
202
202
teststring