Bug #10643 | Stored function with result set crashes server or drops connection | ||
---|---|---|---|
Submitted: | 15 May 2005 11:30 | Modified: | 17 May 2005 8:04 |
Reporter: | Guy Harrison | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.4 | OS: | Windows (XP SP2) |
Assigned to: | CPU Architecture: | Any |
[15 May 2005 11:30]
Guy Harrison
[16 May 2005 19:45]
MySQL Verification Team
Thank you for the bug report. I was able to repeat with server 5.0.4 and having another error message with a server BK 5 days older. I will test with latest BK source.
[16 May 2005 23:06]
MySQL Verification Team
Verified on Linux with latest BK source, below the current behavior: mysql> create function test_func() -> RETURNS INT -> BEGIN -> SELECT 'Hello World'; -> RETURN 1; -> END;$$ ERROR 1415 (0A000): Not allowed to return a result set from a function
[17 May 2005 8:04]
Per-Erik Martin
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 Additional info: It IS illegal to return result sets from functions.