mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
A fix (Bug #9489: Problem with BIT_OR and MySQL 5.0.3)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
drop table if exists t1;
|
||||
drop table if exists t1, t2;
|
||||
create table t1 (v varchar(30), c char(3), e enum('abc','def','ghi'), t text);
|
||||
truncate table vchar;
|
||||
show create table t1;
|
||||
@@ -383,3 +383,12 @@ select * from t1;
|
||||
pkcol othercol
|
||||
test somethingelse
|
||||
drop table t1;
|
||||
create table t1 (a int, b varchar(12));
|
||||
insert into t1 values (1, 'A'), (22, NULL);
|
||||
create table t2 (a int);
|
||||
insert into t2 values (22), (22);
|
||||
select t1.a, t1.b, min(t1.b) from t1 inner join t2 ON t2.a = t1.a
|
||||
group by t1.b, t1.a;
|
||||
a b min(t1.b)
|
||||
22 NULL NULL
|
||||
drop table t1, t2;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
drop table if exists t1, t2;
|
||||
--enable_warnings
|
||||
|
||||
create table t1 (v varchar(30), c char(3), e enum('abc','def','ghi'), t text);
|
||||
@@ -106,3 +106,15 @@ insert into t1 values ('test', 'something');
|
||||
update t1 set othercol='somethingelse' where pkcol='test';
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #9489: problems with key handling
|
||||
#
|
||||
|
||||
create table t1 (a int, b varchar(12));
|
||||
insert into t1 values (1, 'A'), (22, NULL);
|
||||
create table t2 (a int);
|
||||
insert into t2 values (22), (22);
|
||||
select t1.a, t1.b, min(t1.b) from t1 inner join t2 ON t2.a = t1.a
|
||||
group by t1.b, t1.a;
|
||||
drop table t1, t2;
|
||||
|
||||
Reference in New Issue
Block a user