I'm trying to implement a Haversine distance function as desribed in this question.
Whenever I run it though, either on the command line or through PhpMyAdmin, I get the following error:
#1607 - Cannot create stored routine `haversine`. Check warnings
The problem is that when I run SHOW WARNINGS;
I get a 0 row result set.
Is this a common problem? How do I view the warnings? (If it's relevant, I'm running MySQL 5.1.37-1ubuntu5.)