mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
simple optimzation
Portability fixes
This commit is contained in:
@ -22,6 +22,9 @@ case `uname` in
|
||||
SCO_SV | UnixWare | OpenUNIX )
|
||||
# do nothing (Causes strange behavior)
|
||||
;;
|
||||
QNX)
|
||||
# do nothing (avoid error message)
|
||||
;;
|
||||
* )
|
||||
ulimit -n 1024
|
||||
;;
|
||||
|
@ -178,7 +178,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range btn btn 10 NULL 1 Using where
|
||||
explain select * from t1 where btn like "h%";
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range btn btn 10 NULL 4 Using where
|
||||
1 SIMPLE t1 range btn btn 10 NULL # Using where
|
||||
explain select * from t1 where btn like "a%";
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range btn btn 10 NULL 1 Using where
|
||||
|
@ -26,7 +26,6 @@ select (@id := id) - id from t3;
|
||||
0
|
||||
kill @id;
|
||||
drop table t2,t3;
|
||||
Got one of the listed errors
|
||||
show binlog events from 79;
|
||||
Log_name Pos Event_type Server_id Orig_log_pos Info
|
||||
master-bin.000001 79 Query 1 79 use `test`; create table t1 (a int primary key)
|
||||
|
@ -111,6 +111,7 @@ drop table t1;
|
||||
create table t1 (btn char(10) not null, key using BTREE (btn)) engine=heap;
|
||||
insert into t1 values ("hello"),("hello"),("hello"),("hello"),("hello"),("a"),("b"),("c"),("d"),("e"),("f"),("g"),("h"),("i");
|
||||
explain select * from t1 where btn like "i%";
|
||||
--replace_column 9 #
|
||||
explain select * from t1 where btn like "h%";
|
||||
explain select * from t1 where btn like "a%";
|
||||
explain select * from t1 where btn like "b%";
|
||||
|
@ -45,7 +45,7 @@ select (@id := id) - id from t3;
|
||||
kill @id;
|
||||
drop table t2,t3;
|
||||
connection master;
|
||||
--error 1053,0;
|
||||
--error 0,1053;
|
||||
reap;
|
||||
connection master1;
|
||||
show binlog events from 79;
|
||||
|
Reference in New Issue
Block a user