Bug #53786 | Visual Studio addin calls stored procedure with scalar when variable is expected | ||
---|---|---|---|
Submitted: | 19 May 2010 8:12 | Modified: | 22 Jul 2010 17:15 |
Reporter: | Dave Adams | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / NET | Severity: | S2 (Serious) |
Version: | 6.2.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | dataset, out parameter, stored procedure, Visual Studio |
[19 May 2010 8:12]
Dave Adams
[19 May 2010 8:21]
Tonci Grgin
Hi Dave and thanks for your report. I do agree with you but till 5.5 is GA we rely on "tricks" to gather SP metadata so I do not think there is anything that can be done here. Let me think a bit about this.
[22 Jul 2010 17:14]
Vladislav Vaintroub
Tried on soon to be released 6.3-beta. Works for me, under "root" user, under non-privileged user I get a box telling me to grant privileges Here is excerpt from the log 2 Query SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA LIKE 'foo' AND ROUTINE_NAME LIKE 'bar' AND ROUTINE_TYPE LIKE 'PROCEDURE' 2 Query SHOW CREATE PROCEDURE `foo`.`bar` 2 Query SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA LIKE 'foo' AND ROUTINE_NAME LIKE 'bar' 2 Query SHOW CREATE PROCEDURE `foo`.`bar` 2 Query SET @_cnet_param_pMyParam=NULL 2 Query SET SQL_SELECT_LIMIT=0 2 Query call `foo`.`bar` (@_cnet_param_pMyParam) 2 Query SELECT @_cnet_param_pMyParam 2 Query SET SQL_SELECT_LIMIT=DEFAULT So I close that bug. Feel free to reopen if problem is not fixed for you in the next release. And, I agree that calling stored procedure without being asked if "fishy". As Tonci said, it is a trick required to get the result set metadata (fields, types etc). There is unfortunately no way currently to know this info for stored procedures, without actually calling it.