This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1. Connect to DB. 2. Open Query Editor. 3. Write SQL statement: "delimiter \\ CREATE PROCEDURE p11 () BEGIN DECLARE x1 CHAR(5) DEFAULT 'outer'; BEGIN DECLARE x1 CHAR(5) DEFAULT 'inner'; SELECT x1; END; SELECT x1; END; \\" 4. Execute statement. Result: Only 'inner' is displayed. Is it our bug or my mistake? I got this example from MySQL 5 stored procedure tutorial and there is written that 'inner' and then 'outer' should be displayed. It seems to me the same.
I think the problem with this particular stored procedure is that our SQL editor only displays one set of results, that's a known limitation. We can correctly execute the creation of a stored procedure but if a stored procedure returns multiple results, we can not correctly display multiple results. It's on our feature list, but is a low priority compared to other things we need to accomplish.