diff options
author | unknown <hf@deer.(none)> | 2005-08-10 13:45:05 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-08-10 13:45:05 +0500 |
commit | 6cca9a0fd3cc4b5eee9436a422394ec574c7d43c (patch) | |
tree | 0a1851e9f732f8c91d332be39cf1b0fd6446a2bd /mysql-test/r/gis.result | |
parent | e13fa8ebbb095970b9a5a206001eeb06273567de (diff) | |
download | mariadb-git-6cca9a0fd3cc4b5eee9436a422394ec574c7d43c.tar.gz |
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
Diffstat (limited to 'mysql-test/r/gis.result')
-rw-r--r-- | mysql-test/r/gis.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index dfe375fd694..ba6c44dfb03 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -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; |