~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/variables.result

  • Committer: Jay Pipes
  • Date: 2009-10-03 06:05:57 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1166.
  • Revision ID: jpipes@serialcoder-20091003060557-kw8xz3p634vqsbsi
New transaction proto file containing message definitions to be
used in new replication system, which supports group commit behaviour.

New statement_transform library files with utility methods used in 
converting transaction messages into SQL strings.

Update transaction_reader and transaction_writer programs to use
CodedOutput and CodedInputStream from GPB library and got rid of 
calls to korr.h macros entirely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1,t2;
2
 
set @my_myisam_key_cache_size           =@@global.myisam_key_cache_size;
 
2
set @my_key_buffer_size           =@@global.key_buffer_size;
3
3
set @my_max_connect_errors        =@@global.max_connect_errors;
4
4
set @my_max_heap_table_size       =@@global.max_heap_table_size;
5
5
set @my_max_join_size             =@@global.max_join_size;
6
 
set @my_mysql_protocol_buffer_length =@@global.mysql_protocol_buffer_length;
 
6
set @my_net_buffer_length         =@@global.net_buffer_length;
7
7
set @my_server_id                 =@@global.server_id;
8
8
set @my_storage_engine            =@@global.storage_engine;
9
9
set @my_myisam_sort_buffer_size   =@@global.myisam_sort_buffer_size;
84
84
show variables like 'max_join_size';
85
85
Variable_name   Value
86
86
max_join_size   100
87
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
87
select * from information_schema.session_variables where variable_name like 'max_join_size';
88
88
VARIABLE_NAME   VARIABLE_VALUE
89
 
max_join_size   100
 
89
MAX_JOIN_SIZE   100
90
90
show global variables like 'max_join_size';
91
91
Variable_name   Value
92
92
max_join_size   10
93
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
93
select * from information_schema.global_variables where variable_name like 'max_join_size';
94
94
VARIABLE_NAME   VARIABLE_VALUE
95
 
max_join_size   10
 
95
MAX_JOIN_SIZE   10
96
96
set GLOBAL max_join_size=2000;
97
97
show global variables like 'max_join_size';
98
98
Variable_name   Value
99
99
max_join_size   2000
100
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
100
select * from information_schema.global_variables where variable_name like 'max_join_size';
101
101
VARIABLE_NAME   VARIABLE_VALUE
102
 
max_join_size   2000
 
102
MAX_JOIN_SIZE   2000
103
103
set max_join_size=DEFAULT;
104
104
show variables like 'max_join_size';
105
105
Variable_name   Value
106
106
max_join_size   2000
107
 
select * from data_dictionary.session_variables where variable_name like 'max_join_size';
 
107
select * from information_schema.session_variables where variable_name like 'max_join_size';
108
108
VARIABLE_NAME   VARIABLE_VALUE
109
 
max_join_size   2000
 
109
MAX_JOIN_SIZE   2000
110
110
set GLOBAL max_join_size=DEFAULT;
111
111
show global variables like 'max_join_size';
112
112
Variable_name   Value
113
113
max_join_size   2147483647
114
 
select * from data_dictionary.global_variables where variable_name like 'max_join_size';
 
114
select * from information_schema.global_variables where variable_name like 'max_join_size';
115
115
VARIABLE_NAME   VARIABLE_VALUE
116
 
max_join_size   2147483647
 
116
MAX_JOIN_SIZE   2147483647
117
117
set @@max_join_size=1000, @@global.max_join_size=2000;
118
118
select @@local.max_join_size, @@global.max_join_size;
119
119
@@local.max_join_size   @@global.max_join_size
144
144
show variables like 'timed_mutexes';
145
145
Variable_name   Value
146
146
timed_mutexes   ON
147
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
147
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
148
148
VARIABLE_NAME   VARIABLE_VALUE
149
 
timed_mutexes   ON
 
149
TIMED_MUTEXES   ON
150
150
set global timed_mutexes=0;
151
151
show variables like 'timed_mutexes';
152
152
Variable_name   Value
153
153
timed_mutexes   OFF
154
 
select * from data_dictionary.session_variables where variable_name like 'timed_mutexes';
 
154
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
155
155
VARIABLE_NAME   VARIABLE_VALUE
156
 
timed_mutexes   OFF
157
 
set storage_engine=MYISAM, storage_engine="MEMORY";
 
156
TIMED_MUTEXES   OFF
 
157
set storage_engine=MYISAM, storage_engine="HEAP";
158
158
show local variables like 'storage_engine';
159
159
Variable_name   Value
160
160
storage_engine  MEMORY
161
 
select * from data_dictionary.session_variables where variable_name like 'storage_engine';
 
161
select * from information_schema.session_variables where variable_name like 'storage_engine';
162
162
VARIABLE_NAME   VARIABLE_VALUE
163
 
storage_engine  MEMORY
 
163
STORAGE_ENGINE  MEMORY
164
164
show global variables like 'storage_engine';
165
165
Variable_name   Value
166
166
storage_engine  InnoDB
167
 
select * from data_dictionary.global_variables where variable_name like 'storage_engine';
 
167
select * from information_schema.global_variables where variable_name like 'storage_engine';
168
168
VARIABLE_NAME   VARIABLE_VALUE
169
 
storage_engine  InnoDB
 
169
STORAGE_ENGINE  InnoDB
170
170
set GLOBAL myisam_max_sort_file_size=2000000;
171
171
show global variables like 'myisam_max_sort_file_size';
172
172
Variable_name   Value
173
173
myisam_max_sort_file_size       2000000
174
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
174
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
175
175
VARIABLE_NAME   VARIABLE_VALUE
176
 
myisam_max_sort_file_size       2000000
 
176
MYISAM_MAX_SORT_FILE_SIZE       2000000
177
177
set GLOBAL myisam_max_sort_file_size=default;
178
178
show global variables like 'myisam_max_sort_file_size';
179
179
Variable_name   Value
180
180
myisam_max_sort_file_size       2147483647
181
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
182
 
VARIABLE_NAME   VARIABLE_VALUE
183
 
myisam_max_sort_file_size       2147483647
184
 
set global mysql_protocol_buffer_length=1024;
185
 
show global variables like 'mysql_protocol_buffer_%';
186
 
Variable_name   Value
187
 
mysql_protocol_buffer_length    1024
188
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
189
 
VARIABLE_NAME   VARIABLE_VALUE
190
 
mysql_protocol_buffer_length    1024
191
 
show global variables like 'mysql_protocol_buffer_%';
192
 
Variable_name   Value
193
 
mysql_protocol_buffer_length    1024
194
 
select * from data_dictionary.global_variables where variable_name like 'mysql_protocol_buffer_%';
195
 
VARIABLE_NAME   VARIABLE_VALUE
196
 
mysql_protocol_buffer_length    1024
197
 
set global mysql_protocol_buffer_length=1;
198
 
Warnings:
199
 
Error   1292    Truncated incorrect buffer_length value: '1'
200
 
show variables like 'mysql_protocol_buffer_length';
201
 
Variable_name   Value
202
 
mysql_protocol_buffer_length    1024
203
 
set global mysql_protocol_buffer_length=2000000000;
204
 
Warnings:
205
 
Error   1292    Truncated incorrect buffer_length value: '2000000000'
206
 
show variables like 'mysql_protocol_buffer_length';
207
 
Variable_name   Value
208
 
mysql_protocol_buffer_length    1048576
 
181
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
 
182
VARIABLE_NAME   VARIABLE_VALUE
 
183
MYISAM_MAX_SORT_FILE_SIZE       2147483647
 
184
set global net_buffer_length=1024;
 
185
set session net_buffer_length=2048;
 
186
show global variables like 'net_%';
 
187
Variable_name   Value
 
188
net_buffer_length       1024
 
189
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
190
VARIABLE_NAME   VARIABLE_VALUE
 
191
NET_BUFFER_LENGTH       1024
 
192
show session variables like 'net_%';
 
193
Variable_name   Value
 
194
net_buffer_length       2048
 
195
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
196
VARIABLE_NAME   VARIABLE_VALUE
 
197
NET_BUFFER_LENGTH       2048
 
198
set session net_buffer_length=8000;
 
199
show global variables like 'net_%';
 
200
Variable_name   Value
 
201
net_buffer_length       1024
 
202
select * from information_schema.global_variables where variable_name like 'net_%' order by 1;
 
203
VARIABLE_NAME   VARIABLE_VALUE
 
204
NET_BUFFER_LENGTH       1024
 
205
show session variables like 'net_%';
 
206
Variable_name   Value
 
207
net_buffer_length       7168
 
208
select * from information_schema.session_variables where variable_name like 'net_%' order by 1;
 
209
VARIABLE_NAME   VARIABLE_VALUE
 
210
NET_BUFFER_LENGTH       7168
 
211
set net_buffer_length=1;
 
212
Warnings:
 
213
Error   1292    Truncated incorrect net_buffer_length value: '1'
 
214
show variables like 'net_buffer_length';
 
215
Variable_name   Value
 
216
net_buffer_length       1024
 
217
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
218
VARIABLE_NAME   VARIABLE_VALUE
 
219
NET_BUFFER_LENGTH       1024
 
220
set net_buffer_length=2000000000;
 
221
Warnings:
 
222
Error   1292    Truncated incorrect net_buffer_length value: '2000000000'
 
223
show variables like 'net_buffer_length';
 
224
Variable_name   Value
 
225
net_buffer_length       1048576
 
226
select * from information_schema.session_variables where variable_name like 'net_buffer_length';
 
227
VARIABLE_NAME   VARIABLE_VALUE
 
228
NET_BUFFER_LENGTH       1048576
209
229
show variables like '%alloc%';
210
230
Variable_name   Value
211
231
innodb_use_sys_malloc   ON
212
232
query_alloc_block_size  8192
213
233
query_prealloc_size     8192
214
 
range_alloc_block_size  4096
215
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
234
range_alloc_block_size  
 
235
transaction_alloc_block_size    8192
 
236
transaction_prealloc_size       4096
 
237
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
216
238
VARIABLE_NAME   VARIABLE_VALUE
217
 
innodb_use_sys_malloc   ON
218
 
query_alloc_block_size  8192
219
 
query_prealloc_size     8192
220
 
range_alloc_block_size  4096
 
239
INNODB_USE_SYS_MALLOC   ON
 
240
QUERY_ALLOC_BLOCK_SIZE  8192
 
241
QUERY_PREALLOC_SIZE     8192
 
242
RANGE_ALLOC_BLOCK_SIZE  
 
243
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
244
TRANSACTION_PREALLOC_SIZE       4096
221
245
set @@range_alloc_block_size=1024*16;
222
246
set @@query_alloc_block_size=1024*17+2;
223
247
set @@query_prealloc_size=1024*18;
 
248
set @@transaction_alloc_block_size=1024*20-1;
 
249
set @@transaction_prealloc_size=1024*21-1;
224
250
select @@query_alloc_block_size;
225
251
@@query_alloc_block_size
226
252
17408
229
255
innodb_use_sys_malloc   ON
230
256
query_alloc_block_size  17408
231
257
query_prealloc_size     18432
232
 
range_alloc_block_size  16384
233
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
258
range_alloc_block_size  
 
259
transaction_alloc_block_size    19456
 
260
transaction_prealloc_size       20480
 
261
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
234
262
VARIABLE_NAME   VARIABLE_VALUE
235
 
innodb_use_sys_malloc   ON
236
 
query_alloc_block_size  17408
237
 
query_prealloc_size     18432
238
 
range_alloc_block_size  16384
 
263
INNODB_USE_SYS_MALLOC   ON
 
264
QUERY_ALLOC_BLOCK_SIZE  17408
 
265
QUERY_PREALLOC_SIZE     18432
 
266
RANGE_ALLOC_BLOCK_SIZE  
 
267
TRANSACTION_ALLOC_BLOCK_SIZE    19456
 
268
TRANSACTION_PREALLOC_SIZE       20480
239
269
set @@range_alloc_block_size=default;
240
270
set @@query_alloc_block_size=default, @@query_prealloc_size=default;
 
271
set transaction_alloc_block_size=default, @@transaction_prealloc_size=default;
241
272
show variables like '%alloc%';
242
273
Variable_name   Value
243
274
innodb_use_sys_malloc   ON
244
275
query_alloc_block_size  8192
245
276
query_prealloc_size     8192
246
 
range_alloc_block_size  4096
247
 
select * from data_dictionary.session_variables where variable_name like '%alloc%';
 
277
range_alloc_block_size  
 
278
transaction_alloc_block_size    8192
 
279
transaction_prealloc_size       4096
 
280
select * from information_schema.session_variables where variable_name like '%alloc%' order by 1;
248
281
VARIABLE_NAME   VARIABLE_VALUE
249
 
innodb_use_sys_malloc   ON
250
 
query_alloc_block_size  8192
251
 
query_prealloc_size     8192
252
 
range_alloc_block_size  4096
 
282
INNODB_USE_SYS_MALLOC   ON
 
283
QUERY_ALLOC_BLOCK_SIZE  8192
 
284
QUERY_PREALLOC_SIZE     8192
 
285
RANGE_ALLOC_BLOCK_SIZE  
 
286
TRANSACTION_ALLOC_BLOCK_SIZE    8192
 
287
TRANSACTION_PREALLOC_SIZE       4096
253
288
SELECT @@version LIKE 'non-existent';
254
289
@@version LIKE 'non-existent'
255
290
0
296
331
set global myisam_sort_buffer_size=100;
297
332
Warnings:
298
333
Error   1292    Truncated incorrect sort_buffer_size value: '100'
299
 
set global mysql_protocol_buffer_length=100;
 
334
set net_buffer_length=100;
300
335
Warnings:
301
 
Error   1292    Truncated incorrect buffer_length value: '100'
 
336
Error   1292    Truncated incorrect net_buffer_length value: '100'
302
337
set read_buffer_size=100;
303
338
Warnings:
304
339
Error   1292    Truncated incorrect read_buffer_size value: '100'
309
344
Error   1292    Truncated incorrect sort_buffer_size value: '100'
310
345
set sql_big_selects=1;
311
346
set sql_buffer_result=1;
 
347
set sql_safe_updates=1;
312
348
set sql_select_limit=1;
313
349
set sql_select_limit=default;
314
350
set sql_warnings=1;
323
359
create temporary table t2 (a int not null auto_increment, primary key(a));
324
360
insert into t1 values(null),(null),(null);
325
361
insert into t2 values(null),(null),(null);
326
 
set global myisam_key_cache_size=100000;
327
 
Warnings:
328
 
Error   1292    Truncated incorrect key_cache_size value: '100000'
329
 
select @@myisam_key_cache_size;
330
 
@@myisam_key_cache_size
331
 
1048576
 
362
set global key_buffer_size=100000;
 
363
select @@key_buffer_size;
 
364
@@key_buffer_size
 
365
98304
332
366
select * from t1 where a=2;
333
367
a
334
368
2
346
380
select 1;
347
381
1
348
382
1
349
 
select @@session.myisam_key_cache_size;
350
 
ERROR HY000: Variable 'myisam_key_cache_size' is a GLOBAL variable
 
383
select @@session.key_buffer_size;
 
384
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable
351
385
set global myisam_max_sort_file_size=4294967296;
352
386
show global variables like 'myisam_max_sort_file_size';
353
387
Variable_name   Value
354
388
myisam_max_sort_file_size       MAX_FILE_SIZE
355
 
select * from data_dictionary.global_variables where variable_name like 'myisam_max_sort_file_size';
 
389
select * from information_schema.global_variables where variable_name like 'myisam_max_sort_file_size';
356
390
VARIABLE_NAME   VARIABLE_VALUE
357
 
myisam_max_sort_file_size       MAX_FILE_SIZE
 
391
MYISAM_MAX_SORT_FILE_SIZE       MAX_FILE_SIZE
358
392
set global myisam_max_sort_file_size=default;
359
 
set @@global.global.myisam_key_cache_size= 1;
360
 
ERROR HY000: Unknown system variable 'global'
361
 
set GLOBAL global.myisam_key_cache_size= 1;
362
 
ERROR HY000: Unknown system variable 'global'
363
 
SELECT @@global.global.myisam_key_cache_size;
364
 
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 'myisam_key_cache_size' at line 1
365
 
SELECT @@global.session.myisam_key_cache_size;
366
 
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 'myisam_key_cache_size' at line 1
367
 
SELECT @@global.local.myisam_key_cache_size;
368
 
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 'myisam_key_cache_size' at line 1
 
393
set @@global.global.key_buffer_size= 1;
 
394
ERROR HY000: Unknown system variable 'global'
 
395
set GLOBAL global.key_buffer_size= 1;
 
396
ERROR HY000: Unknown system variable 'global'
 
397
SELECT @@global.global.key_buffer_size;
 
398
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 'key_buffer_size' at line 1
 
399
SELECT @@global.session.key_buffer_size;
 
400
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 'key_buffer_size' at line 1
 
401
SELECT @@global.local.key_buffer_size;
 
402
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 'key_buffer_size' at line 1
369
403
create temporary table t1 (
370
404
c1 int,
371
405
c2 int,
399
433
SHOW VARIABLES LIKE 'table_open_cache';
400
434
Variable_name   Value
401
435
table_open_cache        100
402
 
SELECT * FROM DATA_DICTIONARY.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
 
436
SELECT * FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME LIKE 'table_open_cache';
403
437
VARIABLE_NAME   VARIABLE_VALUE
404
 
table_open_cache        100
 
438
TABLE_OPEN_CACHE        100
405
439
SET GLOBAL table_open_cache=DEFAULT;
406
440
*** Various tests with LC_TIME_NAMES
407
441
*** LC_TIME_NAMES: testing case insensitivity
509
543
ERROR HY000: Variable 'warning_count' is a read only variable
510
544
set @@global.error_count=1;
511
545
ERROR HY000: Variable 'error_count' is a read only variable
 
546
set @@max_heap_table_size= 4294967296;
 
547
select @@max_heap_table_size > 0;
 
548
@@max_heap_table_size > 0
 
549
1
 
550
set global max_heap_table_size= 4294967296;
 
551
select @@max_heap_table_size > 0;
 
552
@@max_heap_table_size > 0
 
553
1
 
554
set @@max_heap_table_size= 4294967296;
 
555
select @@max_heap_table_size > 0;
 
556
@@max_heap_table_size > 0
 
557
1
512
558
select @@character_set_system;
513
559
ERROR HY000: Unknown system variable 'character_set_system'
514
560
set global character_set_system = utf8;
519
565
ERROR HY000: Unknown system variable 'character_set_filesystem'
520
566
set character_set_filesystem=utf8;
521
567
ERROR HY000: Unknown system variable 'character_set_filesystem'
522
 
set @sql_big_selects = @@sql_big_selects;
 
568
set @old_sql_big_selects = @@sql_big_selects;
523
569
set @@sql_big_selects = 1;
524
570
show variables like 'sql_big_selects';
525
571
Variable_name   Value
526
572
sql_big_selects ON
527
 
set @@sql_big_selects = @sql_big_selects;
 
573
set @@sql_big_selects = @old_sql_big_selects;
528
574
set @@sql_notes = 0, @@sql_warnings = 0;
529
575
show variables like 'sql_notes';
530
576
Variable_name   Value
572
618
End of 5.0 tests
573
619
set global flush_time                =@my_flush_time;
574
620
ERROR HY000: Unknown system variable 'flush_time'
575
 
set global myisam_key_cache_size           =@my_myisam_key_cache_size;
 
621
set global key_buffer_size           =@my_key_buffer_size;
576
622
set global max_connect_errors        =@my_max_connect_errors;
577
623
set global max_heap_table_size       =@my_max_heap_table_size;
578
624
set global max_join_size             =@my_max_join_size;
579
625
set global max_write_lock_count      =default;
580
626
set global myisam_data_pointer_size  =@my_myisam_data_pointer_size;
581
627
ERROR 42000: Incorrect argument type to variable 'myisam_data_pointer_size'
582
 
set global mysql_protocol_buffer_length= @my_mysql_protocol_buffer_length;
 
628
set global net_buffer_length         =@my_net_buffer_length;
583
629
set global server_id                 =@my_server_id;
584
630
set global storage_engine            =@my_storage_engine;
585
631
set global thread_cache_size         =@my_thread_cache_size;