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:
6
mysql-test/r/sp_missing_4665.result
Normal file
6
mysql-test/r/sp_missing_4665.result
Normal 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;
|
9
mysql-test/t/sp_missing_4665.test
Normal file
9
mysql-test/t/sp_missing_4665.test
Normal 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;
|
Reference in New Issue
Block a user