Skip to Content.
Sympa Menu

freetds - Re: preparedStatement problem

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: preparedStatement problem
  • Date: Wed, 2 Aug 2000 12:14:08 -0400 (EDT)


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





Archive powered by MHonArc 2.6.24.

Top of Page