mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
More test for MDEV-10134 Add full support for DEFAULT
UDF
This commit is contained in:
committed by
Sergei Golubchik
parent
582ee3973e
commit
778a1a4aac
@ -445,3 +445,17 @@ 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));
|
||||
INSERT INTO t1 (a) VALUES ('Hello');
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
Hello HL
|
||||
DROP FUNCTION METAPHON;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user