Bug #10112 Creating a function with return type of "text" causes mysqld to crash
Submitted: 23 Apr 2005 14:25 Modified: 24 Apr 2005 17:55
Reporter: Henry Stern Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: User-defined functions ( UDF ) Severity:S2 (Serious)
Version:5.0.4 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[23 Apr 2005 14:25] Henry Stern
Description:
Creating a function that returns type "text" crashes mysqld 5.0.4/Win32.  The same statement does not crash 5.0.3/Win32 nor does it crash a mysqld compiled from bitkeeper source running on Linux (gcc 3.3.5, glibc 2.3.4).

How to repeat:
create function test () returns text return "foo";
[24 Apr 2005 17:55] Jorge del Conde
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html
[24 Apr 2005 17:55] Jorge del Conde
This is from 5.0.5 from bk:

mysql> create function test () returns text return "foo";
Query OK, 0 rows affected (0.00 sec)

mysql>