mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
79258e4480
- Pass "buffers[i]" to val_str() in udf_handler::fix_fields insteead of NULL. - Add testcase for UDF that will load and run the udf_example functions if available sql/item_func.cc: Instead of passing a NULL pointer into val_str, use the "buffers" array to provide a temp string buffer. sql/udf_example.cc: Spelling error"on"->"one" mysql-test/include/have_udf.inc: New BitKeeper file ``mysql-test/include/have_udf.inc'' mysql-test/r/have_udf.require: New BitKeeper file ``mysql-test/r/have_udf.require'' mysql-test/r/udf.result: New BitKeeper file ``mysql-test/r/udf.result'' mysql-test/t/udf.test: New BitKeeper file ``mysql-test/t/udf.test''
12 lines
295 B
PHP
12 lines
295 B
PHP
#
|
|
# To check if the udf_example.so is available,
|
|
# try to load one function from it.
|
|
#
|
|
#
|
|
--require r/have_udf.require
|
|
--disable_abort_on_error
|
|
CREATE FUNCTION metaphon RETURNS STRING SONAME 'udf_example.so';
|
|
--disable_query_log
|
|
DROP FUNCTION metaphon;
|
|
--enable_query_log
|
|
--enable_abort_on_error
|