mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-21342 Assertion in set_ok_status() upon spatial field error on system-versioned table
SQL_SELECT::check_quick() returns error status only test_quick_select() returns -1. Fix error handling when lower frames throw error, but it is ignored by test_quick_select(). Fix return status for out-of-memory errors which are obviously must be processed as error in upper frames.
This commit is contained in:
@ -312,3 +312,10 @@ ERROR 42S22: Unknown column 'xx' in 'field list'
|
||||
drop procedure sp;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-21342 Assertion in set_ok_status() upon spatial field error on system-versioned table
|
||||
#
|
||||
create or replace table t1 (f point, key(f)) with system versioning engine=myisam;
|
||||
update t1 set f = null where f = 'foo';
|
||||
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
|
||||
drop table t1;
|
||||
|
@ -235,4 +235,14 @@ drop procedure sp;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-21342 Assertion in set_ok_status() upon spatial field error on system-versioned table
|
||||
--echo #
|
||||
create or replace table t1 (f point, key(f)) with system versioning engine=myisam;
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
update t1 set f = null where f = 'foo';
|
||||
|
||||
# cleanup
|
||||
drop table t1;
|
||||
|
||||
source suite/versioning/common_finish.inc;
|
||||
|
Reference in New Issue
Block a user