1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-14689 Server crashes in find_field_in_tables on 2nd execution of PS with versioned table and view

SQL: wrong usage of Item::transform()
This commit is contained in:
Eugene Kosov
2017-12-21 14:59:46 +03:00
committed by GitHub
parent 6dc75b5f89
commit aa4d1bedfc
3 changed files with 36 additions and 6 deletions

View File

@ -107,5 +107,14 @@ create or replace view vt1 as select * from t1 union select * from t2;
select * from vt1;
a
1
# MDEV-14689 crash on second PS execute
create or replace table t1 (a int);
create or replace view v1 as select * from t1;
create or replace table t2 (b int) with system versioning;
prepare stmt from 'select a from v1 inner join t2 group by a order by a';
execute stmt;
a
execute stmt;
a
drop database test;
create database test;