preparedStatement problem

Bob Kline bkline at rksystems.com
Wed Aug 2 12:14:08 EDT 2000


On Wed, 2 Aug 2000, bill dossett wrote:

> this is the stack trace with the jar file supplied,
> hope it isn't pointing to my parameters, but I've
> run the statement several times and it works and
> gives no errors....
> thanks for the help.
> 
> Bill
> 

I see the problem.  There's a missing 'break' statement for the inEscape
case, which therefore falls through to the default case, which throws
the exception you're seeing.  Here's the fix:

diff -Naur original/ParameterUtils.java modified/ParameterUtils.java
--- original/ParameterUtils.java        Mon Jul 17 00:41:05 2000
+++ modified/ParameterUtils.java        Wed Aug  2 12:06:36 2000
@@ -110,6 +110,7 @@
                case inEscape:
                {
                   state = inString;
+                  break;
                }
                default:
                {

Hope this helps.

-- 
Bob Kline
mailto:bkline at rksystems.com
http://www.rksystems.com




More information about the FreeTDS mailing list