mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
455352b0b8
Conversion errors when constructing the condition for an IN predicates were treated as if the affected column contains NULL. If such a IN predicate is inside NOT we get wrong results. Corrected the handling of conversion errors in an IN predicate that is resolved by unique_subquery (through subselect_uniquesubquery_engine). mysql-test/r/subselect3.result: Bug#22855: test case mysql-test/t/subselect3.test: Bug#22855: test case sql/item_subselect.cc: Bug#22855: corrected the handling of conversion errors and NULL key values in IN predicate that is resolved by index lookup.
35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
set autocommit=1;
|
|
reset master;
|
|
create table bug16206 (a int);
|
|
insert into bug16206 values(1);
|
|
start transaction;
|
|
insert into bug16206 values(2);
|
|
commit;
|
|
show binlog events;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
|
|
f n Query 1 n use `test`; create table bug16206 (a int)
|
|
f n Query 1 n use `test`; insert into bug16206 values(1)
|
|
f n Query 1 n use `test`; insert into bug16206 values(2)
|
|
drop table bug16206;
|
|
reset master;
|
|
create table bug16206 (a int) engine= bdb;
|
|
insert into bug16206 values(0);
|
|
insert into bug16206 values(1);
|
|
start transaction;
|
|
insert into bug16206 values(2);
|
|
commit;
|
|
insert into bug16206 values(3);
|
|
show binlog events;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
|
|
f n Query 1 n use `test`; create table bug16206 (a int) engine= bdb
|
|
f n Query 1 n use `test`; insert into bug16206 values(0)
|
|
f n Query 1 n use `test`; insert into bug16206 values(1)
|
|
f n Query 1 n use `test`; BEGIN
|
|
f n Query 1 n use `test`; insert into bug16206 values(2)
|
|
f n Query 1 n use `test`; COMMIT
|
|
f n Query 1 n use `test`; insert into bug16206 values(3)
|
|
drop table bug16206;
|
|
set autocommit=0;
|
|
End of 5.0 tests
|