mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge magare.gmz:/home/kgeorge/mysql/work/B30715-merged-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B30715-merged-5.1-opt
This commit is contained in:
@@ -1378,4 +1378,9 @@ SELECT 1 FROM t1 GROUP BY (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) );
|
||||
1
|
||||
1
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a int, b date NOT NULL, KEY k1 (a,b));
|
||||
SELECT MIN(b) FROM t1 WHERE a=1 AND b>'2007-08-01';
|
||||
MIN(b)
|
||||
NULL
|
||||
DROP TABLE t1;
|
||||
End of 5.0 tests
|
||||
|
@@ -812,4 +812,14 @@ select group_concat(f1),group_concat(f2) from t1;
|
||||
group_concat(f1) group_concat(f2)
|
||||
-0.123456 0.123456
|
||||
drop table t1;
|
||||
create table t1 (
|
||||
ua_id decimal(22,0) not null,
|
||||
ua_invited_by_id decimal(22,0) default NULL,
|
||||
primary key(ua_id)
|
||||
);
|
||||
insert into t1 values (123, NULL), (456, NULL);
|
||||
this must not produce error 1048:
|
||||
select * from t1 where ua_invited_by_id not in (select ua_id from t1);
|
||||
ua_id ua_invited_by_id
|
||||
drop table t1;
|
||||
End of 5.0 tests
|
||||
|
@@ -880,5 +880,14 @@ SELECT 1 FROM t1 GROUP BY (SELECT SLEEP(0) FROM t1 ORDER BY AVG(DISTINCT a) );
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug #30715: Assertion failed: item_field->field->real_maybe_null(), file
|
||||
# .\opt_sum.cc, line
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (a int, b date NOT NULL, KEY k1 (a,b));
|
||||
SELECT MIN(b) FROM t1 WHERE a=1 AND b>'2007-08-01';
|
||||
DROP TABLE t1;
|
||||
|
||||
###
|
||||
--echo End of 5.0 tests
|
||||
|
@@ -425,5 +425,20 @@ insert into t1 values (-0.123456,0.123456);
|
||||
select group_concat(f1),group_concat(f2) from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# BUG#31450 "Query causes error 1048"
|
||||
#
|
||||
create table t1 (
|
||||
ua_id decimal(22,0) not null,
|
||||
ua_invited_by_id decimal(22,0) default NULL,
|
||||
primary key(ua_id)
|
||||
);
|
||||
insert into t1 values (123, NULL), (456, NULL);
|
||||
|
||||
--echo this must not produce error 1048:
|
||||
select * from t1 where ua_invited_by_id not in (select ua_id from t1);
|
||||
|
||||
drop table t1;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
||||
|
Reference in New Issue
Block a user