~mordred/ubuntu/maverick/drizzle/prerelease

« back to all changes in this revision

Viewing changes to tests/r/pbxt/user_var.result

  • Committer: Monty Taylor
  • Date: 2010-09-26 16:09:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1383.
  • Revision ID: mordred@inaugust.com-20100926160902-r30v5hegk16cjk22
Tags: upstream-2010.09.1794
ImportĀ upstreamĀ versionĀ 2010.09.1794

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
hello again     hello   hello again     3       hello again     hello again
136
136
hello again     hello   hello again     3       hello again     hello again
137
137
drop table t1;
138
 
set @a='test';
139
 
select collation(@a),coercibility(@a);
140
 
collation(@a)   coercibility(@a)
141
 
utf8_general_ci 2
142
 
select @a='TEST';
143
 
@a='TEST'
144
 
1
145
 
select @a='TEST' collate utf8_bin;
146
 
@a='TEST' collate utf8_bin
147
 
0
148
 
set @a='test' collate utf8_general_ci;
149
 
select collation(@a),coercibility(@a);
150
 
collation(@a)   coercibility(@a)
151
 
utf8_general_ci 2
152
 
select @a='TEST';
153
 
@a='TEST'
154
 
1
155
 
select @a='TEST' collate utf8_bin;
156
 
@a='TEST' collate utf8_bin
157
 
0
158
 
select collation(@a:='test');
159
 
collation(@a:='test')
160
 
utf8_general_ci
161
 
select coercibility(@a:='test');
162
 
coercibility(@a:='test')
163
 
2
164
 
select collation(@a:='test' collate utf8_bin);
165
 
collation(@a:='test' collate utf8_bin)
166
 
utf8_bin
167
 
select coercibility(@a:='test' collate utf8_bin);
168
 
coercibility(@a:='test' collate utf8_bin)
169
 
2
170
 
select (@a:='test' collate utf8_bin) = 'TEST';
171
 
(@a:='test' collate utf8_bin) = 'TEST'
172
 
0
173
 
select collation(@a),coercibility(@a);
174
 
collation(@a)   coercibility(@a)
175
 
utf8_bin        2
176
 
select (@a:='test' collate utf8_bin) = 'TEST' collate utf8_general_ci;
177
 
(@a:='test' collate utf8_bin) = 'TEST' collate utf8_general_ci
178
 
1
179
138
set @var= NULL ;
180
139
select FIELD( @var,'1it','Hit') as my_column;
181
140
my_column
182
141
0
183
 
select @v, coercibility(@v);
184
 
@v      coercibility(@v)
185
 
NULL    2
186
 
set @v1=null, @v2=1, @v3=1.1, @v4=now();
187
 
select coercibility(@v1),coercibility(@v2),coercibility(@v3),coercibility(@v4);
188
 
coercibility(@v1)       coercibility(@v2)       coercibility(@v3)       coercibility(@v4)
189
 
2       2       2       2
190
142
set session @honk=99;
191
143
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '@honk=99' at line 1
192
144
select @@local.max_allowed_packet;
216
168
show create table t1;
217
169
Table   Create Table
218
170
t1      CREATE TABLE `t1` (
219
 
  `@first_var` blob
220
 
) ENGINE=DEFAULT
 
171
  `@first_var` BLOB
 
172
) ENGINE=DEFAULT COLLATE = utf8_general_ci
221
173
drop table t1;
222
174
set @first_var= cast(NULL as integer);
223
175
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near 'integer)' at line 1
226
178
show create table t1;
227
179
Table   Create Table
228
180
t1      CREATE TABLE `t1` (
229
 
  `@first_var` blob
230
 
) ENGINE=DEFAULT
 
181
  `@first_var` BLOB
 
182
) ENGINE=DEFAULT COLLATE = utf8_general_ci
231
183
drop table t1;
232
184
set @first_var= concat(NULL);
233
185
create table t1 select @first_var;
234
186
show create table t1;
235
187
Table   Create Table
236
188
t1      CREATE TABLE `t1` (
237
 
  `@first_var` blob
238
 
) ENGINE=DEFAULT
 
189
  `@first_var` BLOB
 
190
) ENGINE=DEFAULT COLLATE = utf8_general_ci
239
191
drop table t1;
240
192
set @first_var=1;
241
193
set @first_var= cast(NULL as CHAR);
243
195
show create table t1;
244
196
Table   Create Table
245
197
t1      CREATE TABLE `t1` (
246
 
  `@first_var` text
247
 
) ENGINE=DEFAULT
 
198
  `@first_var` TEXT COLLATE utf8_general_ci
 
199
) ENGINE=DEFAULT COLLATE = utf8_general_ci
248
200
drop table t1;
249
201
set @a=18446744071710965857;
250
202
select @a;