Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5
-
Debian 10
Description
The following query crashes MariaDB server versions 10.2,10.3,10.4,10.5
SELECT * FROM (
SELECT id,ST_DISTANCE(p1,p2) dist FROM (
SELECT * FROM (
SELECT seq id, POINT(lon,lat) p1 FROM
(SELECT seq,floor(RAND()*90) lon,floor(RAND()*180) lat FROM seq_1_to_10) s
)t
JOIN (
SELECT seq id2, POINT(lon,lat) p2 FROM
(SELECT seq,floor(RAND()*90) lon,floor(RAND()*180) lat FROM seq_1_to_10) s
)t2 ON t.id = t2.id2
)t
)t WHERE dist <= 1000;
Interestingly the query executes without the WHERE clause.
Attached is the full error log.
Attachments
Issue Links
- duplicates
-
MDEV-16549 Server crashes in Item_field::fix_fields on query with view and subquery, Assertion `context' failed, Assertion `field' failed
- Closed