mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fixed bug in determinating uncacheable queries
new fatal_error interface to assign is_fatal_error and ne.report_error commant about Item_row
This commit is contained in:
@@ -988,3 +988,12 @@ t1 CREATE TABLE `t1` (
|
||||
`a` bigint(17) NOT NULL default '0'
|
||||
) TYPE=MyISAM CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1), (2), (3);
|
||||
explain select a,(select (select rand() from t1 limit 1) from t1 limit 1)
|
||||
from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 3
|
||||
2 UNCACHEABLE SUBSELECT t1 ALL NULL NULL NULL NULL 3
|
||||
3 UNCACHEABLE SUBSELECT t1 ALL NULL NULL NULL NULL 3
|
||||
drop table t1;
|
||||
|
||||
@@ -575,3 +575,9 @@ drop table t1;
|
||||
CREATE TABLE t1 SELECT (SELECT 1 as a UNION SELECT 1+1 limit 1,1) as a;
|
||||
SHOW CREATE TABLE t1;
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1), (2), (3);
|
||||
explain select a,(select (select rand() from t1 limit 1) from t1 limit 1)
|
||||
from t1;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user