mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
check for mysql_bin_log.is_open() before my_b_tell(&thd->transaction.trans_log
in ha_commit_trans - why it didn't crash earlier ?
This commit is contained in:
@ -156,3 +156,22 @@ drop table t1;
|
||||
select cast(NULL as signed);
|
||||
cast(NULL as signed)
|
||||
NULL
|
||||
create table t1(i int, key(i));
|
||||
insert into t1 values(1);
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
insert into t1 select i*2 from t1;
|
||||
explain select * from t1 where i=2 or i is null;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref_or_null i i 5 const 10 Using where; Using index
|
||||
alter table t1 change i i int not null;
|
||||
explain select * from t1 where i=2 or i is null;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ref i i 4 const 7 Using where; Using index
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user