[MDEV-64] MariaDB 5.3.3 causes 1093 error on Drupal (LP BUG#910123) Created: 2012-01-05  Updated: 2012-02-23  Resolved: 2012-02-23

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.3.3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Oleksandr Byelkin Assignee: Oleksandr Byelkin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
is blocked by MDEV-81 different derived tables has refernce... Closed

 Description   

https://bugs.launchpad.net/maria/+bug/910123



 Comments   
Comment by Oleksandr Byelkin [ 2012-01-10 ]

fix discovered such bad thing in:
create table t3 (a int);
select * from (select 1 as a) as t1 join (select * from test.t3) as t2;
drop table t3;

we have:
(gdb) p all_tables->select_lex
$4 = (st_select_lex *) 0x1c1aae8
(gdb) p all_tables->next_global->next_global->select_lex
$5 = (st_select_lex *) 0x1c1aae8
(gdb) p all_tables->alias
$6 = 0x1c9dc18 "t1"
(gdb) p all_tables->next_global->next_global->alias
$7 = 0x1c9e848 "t2"

i.e. two different derived tables refer to the same SELECT_LEX structure

Generated at Thu Feb 08 06:26:01 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.