mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix for bug #10499 (Function creation with GEOMETRY return)
mysql-test/r/gis.result: test result fixed mysql-test/t/gis.test: test case sql/sp_head.cc: m_geom_returns is sent to make_field sql/sp_head.h: m_geom_returns declared sql/sql_yacc.yy: m_geom_returns initializing added
This commit is contained in:
@ -670,3 +670,12 @@ create trigger t1_bu before update on t1 for each row set new.s1 = null;
|
||||
insert into t1 values (null,null);
|
||||
ERROR 23000: Column 's1' cannot be null
|
||||
drop table t1;
|
||||
create function fn3 () returns point return GeomFromText("point(1 1)");
|
||||
show create function fn3;
|
||||
Function sql_mode Create Function
|
||||
fn3 CREATE FUNCTION `test`.`fn3`() RETURNS point
|
||||
return GeomFromText("point(1 1)")
|
||||
select astext(fn3());
|
||||
astext(fn3())
|
||||
POINT(1 1)
|
||||
drop function fn3;
|
||||
|
@ -383,3 +383,12 @@ create trigger t1_bu before update on t1 for each row set new.s1 = null;
|
||||
--error 1048
|
||||
insert into t1 values (null,null);
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #10499 (function creation with GEOMETRY datatype)
|
||||
#
|
||||
create function fn3 () returns point return GeomFromText("point(1 1)");
|
||||
show create function fn3;
|
||||
select astext(fn3());
|
||||
drop function fn3;
|
||||
|
||||
|
Reference in New Issue
Block a user