~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/variables.test

  • Committer: Brian Aker
  • Date: 2010-08-11 06:07:52 UTC
  • mfrom: (1698.2.4 drizzle)
  • Revision ID: brian@gaz-20100811060752-nlxybv6ch3t0dx8i
MergeĀ fromĀ staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#
9
9
# Bug #19263: variables.test doesn't clean up after itself (I/II -- save)
10
10
#
11
 
set @my_myisam_key_cache_size           =@@global.myisam_key_cache_size;
12
11
set @my_max_connect_errors        =@@global.max_connect_errors;
13
12
set @my_max_heap_table_size       =@@global.max_heap_table_size;
14
13
set @my_max_join_size             =@@global.max_join_size;
197
196
set tmp_table_size=100;
198
197
set tx_isolation="READ-COMMITTED";
199
198
 
200
 
#
201
 
# key buffer
202
 
#
203
 
 
204
 
create temporary table t1 (a int not null auto_increment, primary key(a));
205
 
create temporary table t2 (a int not null auto_increment, primary key(a));
206
 
insert into t1 values(null),(null),(null);
207
 
insert into t2 values(null),(null),(null);
208
 
set global myisam_key_cache_size=100000;
209
 
select @@myisam_key_cache_size;
210
 
select * from t1 where a=2;
211
 
select * from t2 where a=3;
212
 
check table t1,t2;
213
 
select max(a) +1, max(a) +2 into @xx,@yy from t1;
214
 
drop table t1,t2;
215
 
 
216
 
#
217
 
# error conditions
218
 
#
219
 
 
220
 
--error 1193
221
 
select @@xxxxxxxxxx;
222
 
select 1;
223
 
 
224
 
--error 1238
225
 
select @@session.myisam_key_cache_size;
226
 
 
227
 
# init_connect was removed
228
 
#--error 1229
229
 
#set init_connect = NULL;
230
 
#set global init_connect = NULL;
231
 
 
232
199
# Bug#3754 SET GLOBAL myisam_max_sort_file_size doesn't work as
233
200
# expected: check that there is no overflow when 64-bit
234
201
# variables are set
257
224
#select @a, @b;
258
225
 
259
226
#
260
 
# Bug#2586:Disallow global/session/local as structured var. instance names
261
 
#
262
 
--error 1193
263
 
set @@global.global.myisam_key_cache_size= 1;
264
 
--error 1193
265
 
set GLOBAL global.myisam_key_cache_size= 1;
266
 
--error 1064
267
 
SELECT @@global.global.myisam_key_cache_size;
268
 
--error 1064
269
 
SELECT @@global.session.myisam_key_cache_size;
270
 
--error 1064
271
 
SELECT @@global.local.myisam_key_cache_size;
272
 
 
273
 
#
274
227
# BUG#4788 show create table provides incorrect statement
275
228
#
276
229
# What default width have numeric types?
514
467
#
515
468
--error 1193
516
469
set global flush_time                =@my_flush_time;
517
 
set global myisam_key_cache_size           =@my_myisam_key_cache_size;
518
470
set global max_connect_errors        =@my_max_connect_errors;
519
471
set global max_heap_table_size       =@my_max_heap_table_size;
520
472
set global max_join_size             =@my_max_join_size;