StringIndexOutOfBoundsException while preparing a stored procedure call
Brought to you by:
ickzon
A StringIndexOutOfBoundsException occurred while running the existing CallableStatementTest.testCallableStatementExec8 test after it was modified to run against Sybase. The problem was due to misplaced parentheses in the JtdsPreparedSatement.normalize() method where a length check only applied to one out of two conditions when it should have applied to both.
The patch is attached and can also be found at https://gist.github.com/davidbryant/b23984a2d3b94725227f.
Anonymous