summaryrefslogtreecommitdiff
path: root/mysql-test/include/rpl_udf.inc
diff options
context:
space:
mode:
authorunknown <cbell/Chuck@mysql_cab_desk.>2007-03-29 16:43:00 -0400
committerunknown <cbell/Chuck@mysql_cab_desk.>2007-03-29 16:43:00 -0400
commitd3ef3c9f2fd4eb0dd907755174dba1bb5b4fac95 (patch)
tree7e414aca71974cd56d17fc365b4385ec76d3b17d /mysql-test/include/rpl_udf.inc
parent092c052280dbd0392367eb0f51e5af1a8bc50436 (diff)
downloadmariadb-git-d3ef3c9f2fd4eb0dd907755174dba1bb5b4fac95.tar.gz
WL#3629 - Replication of Invocation and Invoked Features
This patch changes test to remove Windows-specific limitations and potential rounding errors in the calculation of a UDF. Also corrects a minor merge conflict. mysql-test/include/rpl_udf.inc: WL#3629 - Replication of Invocation and Invoked Features This patch changes test to remove Windows-specific results by replacing the library name in the SELECT from mysql.func to "UDF_LIB" to allow for the differences in platform (.so vs .dll). The patch also changes the function body of myfuncsql_double to a calculation that does not result in potential rounding errors from the test data. mysql-test/r/rpl_udf.result: WL#3629 - Replication of Invocation and Invoked Features This patch changes the result file for the test to match the new expected values for the SELECT from mysql.func and the return of myfuncsql_double. scripts/mysql_system_tables_fix.sql: WL#3629 - Replication of Invocation and Invoked Features This patch corrects a merge error encountered in a previous merge. The column originator should be listed before time_zone in mysql.event.
Diffstat (limited to 'mysql-test/include/rpl_udf.inc')
-rw-r--r--mysql-test/include/rpl_udf.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/include/rpl_udf.inc b/mysql-test/include/rpl_udf.inc
index ef20327078e..424bacc4216 100644
--- a/mysql-test/include/rpl_udf.inc
+++ b/mysql-test/include/rpl_udf.inc
@@ -34,6 +34,7 @@ eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "$UDF_EXAMPLE_LIB";
--replace_result $UDF_EXAMPLE_LIB UDF_EXAMPLE_LIB
--error ER_CANT_FIND_DL_ENTRY
eval CREATE FUNCTION myfunc_nonexist RETURNS INTEGER SONAME "$UDF_EXAMPLE_LIB";
+--replace_column 3 UDF_LIB
SELECT * FROM mysql.func;
--disable_info
@@ -105,7 +106,7 @@ DROP TABLE t1;
--echo "Running on the master"
--enable_info
CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i;
-CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 0.95;
+CREATE FUNCTION myfuncsql_double(d DOUBLE) RETURNS INTEGER DETERMINISTIC RETURN d * 2.00;
SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%';
--disable_info