BUG: stored procedure parameter with single quotes

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
brnwdrng
Posts: 1
Joined: Tue 06 Feb 2007 18:44

BUG: stored procedure parameter with single quotes

Post by brnwdrng » Tue 06 Feb 2007 19:03

I've noticed that sproc parameters of type ENUM with single quotes (') do not load correctly using MySQLDirect.NET inside VS2005. For example:

Code: Select all

PROCEDURE `mydb`.`mysproc`
(
	IN _Entity_ID CHAR(4), 
	IN _Restriction_For ENUM('OutBound','InBound'),
	IN _Restriction_Type ENUM('White','Black'),
	IN _Number VARCHAR(16),
	IN _Description VARCHAR(100)
)
BEGIN
      --
END
This saves and runs (it's valid MySQL code); however, when the sproc is next opened via DBExplorer, it displays the code like this, which is missing a lot of stuff in the parameter list:

Code: Select all

PROCEDURE `mydb`.`mysproc`(IN _Entity_ID CHAR(4), IN _Restriction_For ENUM(OUTBOUND, IN _Restriction_Type ENUM(WHITE, IN _Number VARCHAR(16), IN _Description VARCHAR(100))
BEGIN
      --
END
This of course errors out, and prevents one from saving mysproc (in fact, it deletes it altogether).

I'm using the DBExplorer/MySQLDirect.NET 3.55 inside VS2005Pro SP1.

Duke
Devart Team
Posts: 476
Joined: Fri 29 Oct 2004 09:25

Post by Duke » Wed 07 Feb 2007 07:21

We'll fix this problem in the next release of MySQL Developer Tools

Post Reply