MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:John H. Embretsen Date:February 9 2011 9:50am
Subject:bzr commit into mysql-5.0 branch (john.embretsen:2902) Bug#52060
View as plain text  
#At file:///export/home/tmp/je159969/mysql-dev/bzr-repos/mysql-5.0/ based on revid:jonathan.perkin@stripped

 2902 John H. Embretsen	2011-02-09
      Backport to 5.0: Fix for Bug#52060 - test udf fails on Snow Leopard.
      Reverse DNS lookup of "localhost" returns "broadcasthost" on Snow Leopard (Mac), and NULL on most others.
      Simply ignore the output, as this is not an essential part of UDF testing.

=== modified file 'mysql-test/r/udf.result'
--- a/mysql-test/r/udf.result	2009-04-14 17:20:13 +0000
+++ b/mysql-test/r/udf.result	2011-02-09 09:50:09 +0000
@@ -40,8 +40,6 @@ ERROR HY000: Wrong number of arguments t
 select reverse_lookup("");
 select reverse_lookup(127,0,0,1);
 select reverse_lookup("localhost");
 select avgcost();
 ERROR HY000: wrong number of arguments: AVGCOST() requires two arguments
 select avgcost(100,23.76);

=== modified file 'mysql-test/t/udf.test'
--- a/mysql-test/t/udf.test	2007-11-27 15:16:52 +0000
+++ b/mysql-test/t/udf.test	2011-02-09 09:50:09 +0000
@@ -51,14 +51,17 @@ select lookup("localhost");
 --error 0
 select reverse_lookup();
-# These two functions should return "localhost", but it's
+# These two function calls should return "localhost", but it's
 # depending on configuration, so just call them and don't log the result
 select reverse_lookup("");
 select reverse_lookup(127,0,0,1);
+# This function call may return different results depending on platform,
+# so ignore results (see Bug#52060).
 select reverse_lookup("localhost");
 --error 0
 select avgcost();
 --error 0

Attachment: [text/bzr-bundle] bzr/
bzr commit into mysql-5.0 branch (john.embretsen:2902) Bug#52060John H. Embretsen9 Feb