Bug #2668 missing parameter value doesn't cause error in prepared statement
Submitted: 6 Feb 2004 13:54 Modified: 6 Feb 2004 14:07
Reporter: Ralf Hauser Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S2 (Serious)
Version:3.1-nightly-20031203 OS:Linux (RH9)
Assigned to: CPU Architecture:Any

[6 Feb 2004 13:54] Ralf Hauser
Description:
in a prepared statement I had 16 "?" values, but by mistake I only provided 15 inputs (myStmt.setInt(3, ...);).
Instead of throwing an exception, the jdbc simply went on and used my 15th input twice for 15 and 16

How to repeat:
every time

Suggested fix:
throw an exception
[6 Feb 2004 14:07] Mark Matthews
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html