mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge
sql/item.cc: Auto merged mysql-test/r/subselect.result: SCCS merged mysql-test/t/subselect.test: SCCS merged
This commit is contained in:
@ -1153,6 +1153,11 @@ INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
|
||||
SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
|
||||
REF_ID
|
||||
DROP TABLE t1;
|
||||
create table t1(City VARCHAR(30),Location geometry);
|
||||
insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
|
||||
select City from t1 where (select intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5 50, 2.5 47, 2 47, 2 50))'))=0);
|
||||
City
|
||||
drop table t1;
|
||||
CREATE TABLE `t1` (
|
||||
`id` mediumint(8) unsigned NOT NULL auto_increment,
|
||||
`pseudo` varchar(35) NOT NULL default '',
|
||||
|
@ -738,6 +738,16 @@ CREATE TABLE t1 (
|
||||
INSERT INTO t1 VALUES (1,0,NULL,NULL),(2,0,NULL,NULL);
|
||||
SELECT DISTINCT REF_ID FROM t1 WHERE ID= (SELECT DISTINCT REF_ID FROM t1 WHERE ID=2);
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
#
|
||||
# correct behavoiur for function from reduced subselect
|
||||
#
|
||||
create table t1(City VARCHAR(30),Location geometry);
|
||||
insert into t1 values("Paris",GeomFromText('POINT(2.33 48.87)'));
|
||||
select City from t1 where (select intersects(GeomFromText(AsText(Location)),GeomFromText('Polygon((2 50, 2.5 50, 2.5 47, 2 47, 2 50))'))=0);
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# reduced subselect in ORDER BY & GROUP BY clauses
|
||||
#
|
||||
|
Reference in New Issue
Block a user