freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Mark MacRae <MarkM AT relais-intl.com>
- To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
- Subject: Issues with conn.setAutoCommit(false) ?
- Date: Fri, 23 Jun 2000 16:15:30 -0400
I seem to be having trouble with the JDBC driver when I turn off auto
commit. During one of my stmt.executeUpdate(), everything just hangs.
I've run the exact same code with no problems through the Oracle thin
driver, so I'm assuming is has to do with something either unimplemented in
FreeTDS or just a bug.
I don't know if this will help at all, but here's the last few lines that it
executes before just mysteriously stopping (no error, no exception thrown -
the code just stops executing when I try to "step" one more line):
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:416)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:418)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:523)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:401)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:403)
BreakPoint : java.lang.String.charAt(String:506)
BreakPoint : java.lang.String.charAt(String:509)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:403)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:404)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:408)
BreakPoint :
com.internetcds.jdbc.tds.EscapeProcessor.nativeString(EscapeProcessor:416)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:104)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:115)
BreakPoint : java.lang.Object.<init>(Object:23)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:116)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:117)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:118)
BreakPoint : java.lang.StringBuffer.<init>(StringBuffer:105)
Line 416 of the EscapeProcessor is just a concatenation:
result = result + ch;
Where "result" is a String and "ch" a char. I stuck in a few
System.out.println()s. This statement works many times over (hundreds of
times) until the last time, when the values are as follows:
result = Insert into ID_KEYWORD_TITLE (keyword, request_number) values
('TEST', 'REG-10000242'
result.length() = 85
ch = )
I'm stumped.
mark
-
Issues with conn.setAutoCommit(false) ?,
Mark MacRae, 06/23/2000
- <Possible follow-up(s)>
- Re: Issues with conn.setAutoCommit(false) ?, Bob Kline, 06/25/2000
- Re: Issues with conn.setAutoCommit(false) ?, Mark MacRae, 06/26/2000
Archive powered by MHonArc 2.6.24.