Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365650 - Data source explorer fails to display MySQL stored procedure
Summary: Data source explorer fails to display MySQL stored procedure
Status: ASSIGNED
Alias: None
Product: Data Tools
Classification: Tools
Component: Data Source Explorer (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Pierre Queinnec CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 13:51 EST by Ram Venkataswamy CLA
Modified: 2012-05-18 12:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ram Venkataswamy CLA 2011-12-05 13:51:42 EST
Build Identifier: M20110909-1335

Data source explorer fails to display MySQL stored procedure 

Reproducible: Always

Steps to Reproduce:
- Create a DB connection to MySQL database (ex: HR schema)

- Open Scrapbook and create a stored procedure

Sample:

CREATE PROCEDURE SP_SELECT_MYSQL
( IN ID VARCHAR(10), OUT IDENTITY VARCHAR(10), OUT PASSWD VARCHAR(10), OUT NAME VARCHAR(10))
BEGIN
  SELECT EMPLOYEE_ID, EMPLOYEE_NAME
  INTO IDENTITY, PASSWD, NAME
  FROM EMPLOYEES
  WHERE EMPLOYEE_ID = ID;
END

- Executing the SQL succeeds

In Data Source explorer, refresh the schema/stored procedure node. The newly created procedure is not displayed.
Comment 1 Pierre Queinnec CLA 2012-05-18 12:56:56 EDT
Hi Ram, this seems like it's not a bug. Your procedure returns three results, so it's considered as a UDF, not a stored procedure.

So the workaround is to look under 'User-Defined Functions' in the tree, not under 'Stored Procedures'.

Could you confirm it works? Thanks.