Bug #33770 | Failure to execute the Stored Procedures with the parameters passed by name but | ||
---|---|---|---|
Submitted: | 9 Jan 2008 14:31 | Modified: | 9 Feb 2008 14:36 |
Reporter: | Arun Merum | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Stored Routines | Severity: | S3 (Non-critical) |
Version: | Ver 14.12 Distrib 5.0.45 | OS: | Windows (non positional parameters, executing, JAVA) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Non positional parameters |
[9 Jan 2008 14:31]
Arun Merum
[9 Jan 2008 14:33]
Arun Merum
This effects all the stored procedure users.
[9 Jan 2008 14:35]
Mark Matthews
That's not the syntax for passing values by name, at least not for JDBC. It *should* look like this: sp = con.prepareCall("{ call get_movies( ?, ? )}"); sp.setString("title",'t'); sp.setString("genere",'a'); ResultSet res = sp.executeQuery(); (Even not using Java, I don't see what the benefit of the way you posted would be, since you're putting the names in their ordinal positions anyway!?)
[10 Feb 2008 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[5 Oct 2009 20:53]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/85797 2887 Guilhem Bichot 2009-10-05 Backport of the fix for BUG#33770 "Full table scan instead selected partitions for query more than 10 partitions" from 6.0, made in sergefp@mysql.com-20090205190644-q8632sniogedhtsu