summaryrefslogtreecommitdiff
path: root/mysql-test/t/gis.test
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-08-10 13:45:05 +0500
committerunknown <hf@deer.(none)>2005-08-10 13:45:05 +0500
commit6cca9a0fd3cc4b5eee9436a422394ec574c7d43c (patch)
tree0a1851e9f732f8c91d332be39cf1b0fd6446a2bd /mysql-test/t/gis.test
parente13fa8ebbb095970b9a5a206001eeb06273567de (diff)
downloadmariadb-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/t/gis.test')
-rw-r--r--mysql-test/t/gis.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test
index 202042d0257..412bdc3314b 100644
--- a/mysql-test/t/gis.test
+++ b/mysql-test/t/gis.test
@@ -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;
+