Bug #11693 Part of Function body code is display in schema tree view
Submitted: 1 Jul 2005 15:23 Modified: 18 Jul 2005 16:25
Reporter: Roland Bouman Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.10 OS:Windows (Win XP Professional SP2)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any

[1 Jul 2005 15:23] Roland Bouman
Description:
Part of the body of a function is displayed in the schema browser treeview. 

How to repeat:
In a script tab, enter this:

DELIMITER $$

DROP FUNCTION IF EXISTS `test`.`helloworld`$$
CREATE FUNCTION "test"."helloworld"() RETURNS varchar(20)
repeat
return 'Hello World';
until true
end repeat$$

DELIMITER ;

and run it.

refresh the database/schema node wherein the function was created.

In the schema browser treeview, the function is displayed as:

helloworld: varchar(20)|repeat

The character that I see in the treeview just resembles a |, it's probably some non-printable 10 or 13 character

Suggested fix:
Only the name and return type should be displayed, none of the body.
[11 Jul 2005 14:11] Aleksey Kishkin
screenshoot

Attachment: bug11693.PNG (image/png, text), 57.30 KiB.

[18 Jul 2005 16:25] Vladimir Kolesnikov
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