~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to mysql-test/r/variables.result

  • Committer: monty at mysql
  • Date: 2002-07-23 15:31:22 UTC
  • mto: (1110.1.7)
  • mto: This revision was merged to the branch mainline in revision 1116.
  • Revision ID: sp1r-monty@mashka.mysql.fi-20020723153122-09736
New SET syntax & system variables.
Made a some new buffers thread specific and changeable.
Resize of key_buffer.
AUTO_COMMIT -> AUTOCOMMIT
Fixed mutex bug in DROP DATABASE
Fixed bug when using auto_increment as second part of a key where first part could include NULL.
Split handler->extra() to extra() and extra_opt() to be able to support thread specific buffers.
Don't write message to error log when slave reconnects becasue of timeout.
Fixed possible update problem when using DELETE/UPDATE on small tables
(In some cases we used index even if table scanning would be better)
A lot of minior code cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
1       Bozo    USA
45
45
4       Mr. Floppy      GB
46
46
drop table t1;
 
47
set max_join_size=100;
 
48
show variables like 'max_join_size';
 
49
Variable_name   Value
 
50
max_join_size   100
 
51
show global variables like 'max_join_size';
 
52
Variable_name   Value
 
53
max_join_size   4294967295
 
54
set GLOBAL max_join_size=2000;
 
55
show global variables like 'max_join_size';
 
56
Variable_name   Value
 
57
max_join_size   2000
 
58
set max_join_size=DEFAULT;
 
59
show variables like 'max_join_size';
 
60
Variable_name   Value
 
61
max_join_size   2000
 
62
set GLOBAL max_join_size=DEFAULT;
 
63
show global variables like 'max_join_size';
 
64
Variable_name   Value
 
65
max_join_size   4294967295
 
66
set @@max_join_size=1000, @@global.max_join_size=2000;
 
67
select @@local.max_join_size, @@global.max_join_size;
 
68
@@max_join_size @@max_join_size
 
69
1000    2000
 
70
select @@identity,  length(@@version)>0;
 
71
@@identity      length(@@version)>0
 
72
0       1
47
73
select @@VERSION=version();
48
74
@@VERSION=version()
49
75
1
50
76
select last_insert_id(345);
51
77
last_insert_id(345)
52
78
345
53
 
select @@IDENTITY,last_insert_id();
54
 
@@IDENTITY      last_insert_id()
55
 
345     345
56
 
select @@identity;
57
 
@@IDENTITY
58
 
345
59
 
select @@unknown_variable;
 
79
select @@IDENTITY,last_insert_id(), @@identity;
 
80
@@identity      last_insert_id()        @@identity
 
81
345     345     345
 
82
set big_tables=OFF, big_tables=ON, big_tables=0, big_tables=1, big_tables="OFF", big_tables="ON";
 
83
set global concurrent_insert=ON;
 
84
show variables like 'concurrent_insert';
 
85
Variable_name   Value
 
86
concurrent_insert       ON
 
87
set global concurrent_insert=1;
 
88
show variables like 'concurrent_insert';
 
89
Variable_name   Value
 
90
concurrent_insert       ON
 
91
set global concurrent_insert=0;
 
92
show variables like 'concurrent_insert';
 
93
Variable_name   Value
 
94
concurrent_insert       OFF
 
95
set global concurrent_insert=OFF;
 
96
show variables like 'concurrent_insert';
 
97
Variable_name   Value
 
98
concurrent_insert       OFF
 
99
set global concurrent_insert=DEFAULT;
 
100
show variables like 'concurrent_insert';
 
101
Variable_name   Value
 
102
concurrent_insert       ON
 
103
set table_type=MYISAM, table_type="HEAP", global table_type="INNODB";
 
104
show local variables like 'table_type';
 
105
Variable_name   Value
 
106
table_type      HEAP
 
107
show global variables like 'table_type';
 
108
Variable_name   Value
 
109
table_type      INNODB
 
110
set GLOBAL query_cache_size=100000;
 
111
set GLOBAL safe_show_database=0;
 
112
set myisam_max_sort_file_size=10000, GLOBAL myisam_max_sort_file_size=20000;
 
113
show variables like 'myisam_max_sort_file_size';
 
114
Variable_name   Value
 
115
myisam_max_sort_file_size       10000
 
116
show global variables like 'myisam_max_sort_file_size';
 
117
Variable_name   Value
 
118
myisam_max_sort_file_size       20000
 
119
set myisam_max_sort_file_size=default;
 
120
show variables like 'myisam_max_sort_file_size';
 
121
Variable_name   Value
 
122
myisam_max_sort_file_size       20000
 
123
set global net_buffer_length=1024, net_write_timeout=200, net_read_timeout=300;
 
124
set session net_buffer_length=2048, net_write_timeout=500, net_read_timeout=600;
 
125
show global variables like 'net_%';
 
126
Variable_name   Value
 
127
net_buffer_length       1024
 
128
net_read_timeout        300
 
129
net_retry_count 10
 
130
net_write_timeout       200
 
131
show session variables like 'net_%';
 
132
Variable_name   Value
 
133
net_buffer_length       2048
 
134
net_read_timeout        600
 
135
net_retry_count 10
 
136
net_write_timeout       500
 
137
set session net_buffer_length=8000, global net_read_timeout=900, net_write_timeout=1000;
 
138
show global variables like 'net_%';
 
139
Variable_name   Value
 
140
net_buffer_length       1024
 
141
net_read_timeout        900
 
142
net_retry_count 10
 
143
net_write_timeout       1000
 
144
show session variables like 'net_%';
 
145
Variable_name   Value
 
146
net_buffer_length       7168
 
147
net_read_timeout        600
 
148
net_retry_count 10
 
149
net_write_timeout       500
 
150
set net_buffer_length=1;
 
151
show variables like 'net_buffer_length';
 
152
Variable_name   Value
 
153
net_buffer_length       1024
 
154
set net_buffer_length=2000000000;
 
155
show variables like 'net_buffer_length';
 
156
Variable_name   Value
 
157
net_buffer_length       1048576
 
158
set GLOBAL character set cp1251_koi8;
 
159
show global variables like "convert_character_set";
 
160
Variable_name   Value
 
161
convert_character_set   cp1251_koi8
 
162
set character set cp1251_koi8;
 
163
show variables like "convert_character_set";
 
164
Variable_name   Value
 
165
convert_character_set   cp1251_koi8
 
166
set global character set default, session character set default;
 
167
show variables like "convert_character_set";
 
168
Variable_name   Value
 
169
convert_character_set   cp1251_koi8
 
170
select @@timestamp>0;
 
171
@@timestamp>0
 
172
1
 
173
set big_tables=OFFF;
 
174
Variable 'big_tables' can't be set to the value of 'OFFF'
 
175
set big_tables="OFFF";
 
176
Variable 'big_tables' can't be set to the value of 'OFFF'
 
177
set unknown_variable=1;
60
178
Unknown system variable 'unknown_variable'
 
179
set max_join_size="hello";
 
180
Wrong argument type to variable 'max_join_size'
 
181
set table_type=UNKNOWN_TABLE_TYPE;
 
182
Variable 'table_type' can't be set to the value of 'UNKNOWN_TABLE_TYPE'
 
183
set table_type=INNODB, big_tables=2;
 
184
Variable 'big_tables' can't be set to the value of '2'
 
185
show local variables like 'table_type';
 
186
Variable_name   Value
 
187
table_type      HEAP
 
188
set SESSION query_cache_size=10000;
 
189
Variable 'query_cache_size' is a GLOBAL variable and should be set with SET GLOBAL
 
190
set GLOBAL table_type=DEFAULT;
 
191
Variable 'table_type' doesn't have a default value
 
192
set convert_character_set=UNKNOWN_CHARACTER_SET;
 
193
Unknown character set: 'UNKNOWN_CHARACTER_SET'
 
194
set character set unknown;
 
195
Unknown character set: 'unknown'
 
196
set character set 0;
 
197
Wrong argument type to variable 'convert_character_set'
 
198
set global autocommit=1;
 
199
Variable 'autocommit' is a LOCAL variable and can't be used with SET GLOBAL
 
200
select @@global.timestamp;
 
201
Variable 'timestamp' is a LOCAL variable and can't be used with SET GLOBAL
 
202
set @@version='';
 
203
Unknown system variable 'version'
 
204
set @@concurrent_insert=1;
 
205
Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
 
206
set @@global.sql_auto_is_null=1;
 
207
Variable 'sql_auto_is_null' is a LOCAL variable and can't be used with SET GLOBAL
 
208
select @@global.sql_auto_is_null;
 
209
Variable 'sql_auto_is_null' is a LOCAL variable and can't be used with SET GLOBAL
 
210
set autocommit=1;
 
211
set big_tables=1;
 
212
select @@autocommit, @@big_tables;
 
213
@@autocommit    @@big_tables
 
214
1       1
 
215
set global binlog_cache_size=100;
 
216
set bulk_insert_buffer_size=100;
 
217
set convert_character_set=cp1251_koi8;
 
218
set convert_character_set=default;
 
219
set @@global.concurrent_insert=1;
 
220
set global connect_timeout=100;
 
221
set global delay_key_write=1;
 
222
set global delayed_insert_limit=100;
 
223
set global delayed_insert_timeout=100;
 
224
set global delayed_queue_size=100;
 
225
set global flush=1;
 
226
set global flush_time=100;
 
227
set insert_id=1;
 
228
set interactive_timeout=100;
 
229
set join_buffer_size=100;
 
230
set last_insert_id=1;
 
231
set global local_infile=1;
 
232
set long_query_time=100;
 
233
set low_priority_updates=1;
 
234
set max_allowed_packet=100;
 
235
set global max_binlog_cache_size=100;
 
236
set global max_binlog_size=100;
 
237
set global max_connect_errors=100;
 
238
set global max_connections=100;
 
239
set global max_delayed_threads=100;
 
240
set max_heap_table_size=100;
 
241
set max_join_size=100;
 
242
set max_sort_length=100;
 
243
set max_tmp_tables=100;
 
244
set global max_user_connections=100;
 
245
select @@max_user_connections;
 
246
@@max_user_connections
 
247
100
 
248
set global max_write_lock_count=100;
 
249
set myisam_max_extra_sort_file_size=100;
 
250
select @@myisam_max_extra_sort_file_size;
 
251
@@myisam_max_extra_sort_file_size
 
252
100
 
253
set myisam_max_sort_file_size=100;
 
254
set myisam_sort_buffer_size=100;
 
255
set net_buffer_length=100;
 
256
set net_read_timeout=100;
 
257
set net_write_timeout=100;
 
258
set global query_cache_limit=100;
 
259
set global query_cache_size=100;
 
260
set global query_cache_type=demand;
 
261
set read_buffer_size=100;
 
262
set read_rnd_buffer_size=100;
 
263
set global rpl_recovery_rank=100;
 
264
set global safe_show_database=1;
 
265
set global server_id=100;
 
266
set global slave_net_timeout=100;
 
267
set global slow_launch_time=100;
 
268
set sort_buffer_size=100;
 
269
set sql_auto_is_null=1;
 
270
select @@sql_auto_is_null;
 
271
@@sql_auto_is_null
 
272
1
 
273
set @@sql_auto_is_null=0;
 
274
select @@sql_auto_is_null;
 
275
@@sql_auto_is_null
 
276
0
 
277
set sql_big_selects=1;
 
278
set sql_big_tables=1;
 
279
set sql_buffer_result=1;
 
280
set sql_log_bin=1;
 
281
set sql_log_off=1;
 
282
set sql_log_update=1;
 
283
set sql_low_priority_updates=1;
 
284
set sql_max_join_size=200;
 
285
select @@sql_max_join_size,@@max_join_size;
 
286
@@sql_max_join_size     @@max_join_size
 
287
200     200
 
288
set sql_quote_show_create=1;
 
289
set sql_safe_updates=1;
 
290
set sql_select_limit=1;
 
291
set global sql_slave_skip_counter=100;
 
292
set sql_warnings=1;
 
293
set global table_cache=100;
 
294
set table_type=myisam;
 
295
set global thread_cache_size=100;
 
296
set timestamp=1, timestamp=default;
 
297
set tmp_table_size=100;
 
298
set tx_isolation="READ-COMMITTED";
 
299
set wait_timeout=100;
 
300
set log_warnings=1;
 
301
DROP TABLE IF EXISTS t1,t2;
 
302
create table t1 (a int not null auto_increment, primary key(a));
 
303
create table t2 (a int not null auto_increment, primary key(a));
 
304
insert into t1 values(null),(null),(null);
 
305
insert into t2 values(null),(null),(null);
 
306
set global key_buffer_size=100000;
 
307
select @@key_buffer_size;
 
308
@@key_buffer_size
 
309
98304
 
310
select * from t1 where a=2;
 
311
a
 
312
2
 
313
select * from t2 where a=3;
 
314
a
 
315
3
 
316
check table t1,t2;
 
317
Table   Op      Msg_type        Msg_text
 
318
test.t1 check   status  OK
 
319
test.t2 check   status  OK
 
320
drop table t1,t2;