summaryrefslogtreecommitdiff
path: root/mysql-test/r/udf.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/udf.result')
-rw-r--r--mysql-test/r/udf.result20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/udf.result b/mysql-test/r/udf.result
index bcfc9941db9..dc9806bb7d1 100644
--- a/mysql-test/r/udf.result
+++ b/mysql-test/r/udf.result
@@ -445,3 +445,23 @@ DROP FUNCTION myfunc_double;
DROP TABLE t1;
#
End of 5.1 tests.
+#
+# MDEV-10134 Add full support for DEFAULT
+#
+CREATE FUNCTION metaphon RETURNS STRING SONAME "UDF_EXAMPLE_LIB";
+SELECT METAPHON('Hello');
+METAPHON('Hello')
+HL
+CREATE TABLE t1 (a VARCHAR(10), b VARCHAR(10) DEFAULT METAPHON(a));
+SHOW CREATE TABLE t1;
+Table Create Table
+t1 CREATE TABLE `t1` (
+ `a` varchar(10) DEFAULT NULL,
+ `b` varchar(10) DEFAULT METAPHON(a)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1
+INSERT INTO t1 (a) VALUES ('Hello');
+SELECT * FROM t1;
+a b
+Hello HL
+DROP FUNCTION METAPHON;
+DROP TABLE t1;