1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-4665 crash when referencing missing function in a subquery

don't ignore the return value fix_fields()
This commit is contained in:
Sergei Golubchik
2013-07-05 17:54:25 +02:00
parent 782d86af44
commit d3157e239a
3 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,6 @@
create table t (a int);
create or replace view v as select 1 from t where a;
delete from v where (select g());
ERROR 42000: FUNCTION test.g does not exist
drop view v;
drop table t;

View File

@ -0,0 +1,9 @@
#
# MDEV-4665 crash when referencing missing function in a subquery
#
create table t (a int);
create or replace view v as select 1 from t where a;
--error ER_SP_DOES_NOT_EXIST
delete from v where (select g());
drop view v;
drop table t;