diff options
author | unknown <brian@piggy.tangent.org> | 2007-08-29 14:36:08 -0700 |
---|---|---|
committer | unknown <brian@piggy.tangent.org> | 2007-08-29 14:36:08 -0700 |
commit | 674f49f8f415c35b37660d85234e268bd3bd03ef (patch) | |
tree | 564c2a13874c569a6a0f7e5f22b4250b11f29d39 /mysql-test/include/rpl_udf.inc | |
parent | f69bba4643b641e75506cd2c0556ebad17228105 (diff) | |
download | mariadb-git-674f49f8f415c35b37660d85234e268bd3bd03ef.tar.gz |
Added ORDER BY to udf select so that results are ordered.
mysql-test/include/rpl_udf.inc:
ORDER BY to force order
mysql-test/suite/rpl/r/rpl_udf.result:
Fix for ORDER BY
Diffstat (limited to 'mysql-test/include/rpl_udf.inc')
-rw-r--r-- | mysql-test/include/rpl_udf.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/mysql-test/include/rpl_udf.inc b/mysql-test/include/rpl_udf.inc index d9e19cda484..30f39d79d49 100644 --- a/mysql-test/include/rpl_udf.inc +++ b/mysql-test/include/rpl_udf.inc @@ -35,7 +35,7 @@ eval CREATE FUNCTION myfunc_int RETURNS INTEGER SONAME "$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; +SELECT * FROM mysql.func ORDER BY name; --disable_info save_master_pos; @@ -46,7 +46,7 @@ sync_with_master; --echo "Running on the slave" --enable_info --replace_column 3 UDF_LIB -SELECT * FROM mysql.func; +SELECT * FROM mysql.func ORDER BY name; --disable_info connection master; @@ -81,7 +81,7 @@ connection master; --enable_info DROP FUNCTION myfunc_double; DROP FUNCTION myfunc_int; -SELECT * FROM mysql.func; +SELECT * FROM mysql.func ORDER BY name; --disable_info sync_slave_with_master; @@ -89,7 +89,7 @@ sync_slave_with_master; # Check to see if the UDFs were dropped on the slave --echo "Running on the slave" --enable_info -SELECT * FROM mysql.func; +SELECT * FROM mysql.func ORDER BY name; --disable_info connection master; @@ -108,7 +108,7 @@ DROP TABLE t1; --enable_info CREATE FUNCTION myfuncsql_int(i INT) RETURNS INTEGER DETERMINISTIC RETURN i; 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%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; --disable_info sync_slave_with_master; @@ -116,7 +116,7 @@ sync_slave_with_master; # Check to see that UDF CREATE statements were replicated --echo "Running on the slave" --enable_info -SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; --disable_info connection master; @@ -147,7 +147,7 @@ connection master; --enable_info ALTER FUNCTION myfuncsql_int COMMENT "This was altered."; ALTER FUNCTION myfuncsql_double COMMENT "This was altered."; -SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; --disable_info sync_slave_with_master; @@ -155,7 +155,7 @@ sync_slave_with_master; # Check to see if data was replicated --echo "Running on the slave" --enable_info -SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; # Check to see that the functions are available for execution on the slave SELECT myfuncsql_int(25); @@ -169,7 +169,7 @@ connection master; --enable_info DROP FUNCTION myfuncsql_double; DROP FUNCTION myfuncsql_int; -SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; --disable_info sync_slave_with_master; @@ -177,7 +177,7 @@ sync_slave_with_master; # Check to see if the UDFs were dropped on the slave --echo "Running on the slave" --enable_info -SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%'; +SELECT db, name, type, param_list, body, comment FROM mysql.proc WHERE db = 'test' AND name LIKE 'myfuncsql%' ORDER BY name; --disable_info connection master; |