Re: ResultSet.updateString against DB2 giving "Column not updatable"
- From: "joeNOSPAM@xxxxxxx" <joe.weinstein@xxxxxxxxx>
- Date: 29 Jun 2006 09:38:56 -0700
adamcrume@xxxxxxxxx wrote:
If that's what's happening, the driver's not only being silent but
devious. I tested the result set after it was created:
System.out.println("Type correct: "+
(rs.getType()==ResultSet.TYPE_FORWARD_ONLY));
System.out.println("Concurrency correct: "+
(rs.getConcurrency()==ResultSet.CONCUR_UPDATABLE));
These printed out true and true.
I'm curious how you arrived at your conclusion. Are you aware of a
DB2-specific issue? If so, could you reference any documentation?
Hi. I just based my conclusion on the obvious driver response
to the initial code. I would suggest making a small standalone
program that makes a JDBC connection, creates a table, inserts
a row, and then tries your code to update it via a result set.
Joe
Joe Weinstein wrote:
Hi. There's nothing wrong with your JDBC. It seems the
driver is silently downgrading your ResultSet to a
non updateable one. Check the driver documents about this.
Joe Weinstein at BEA Systems
.
- Follow-Ups:
- References:
- ResultSet.updateString against DB2 giving "Column not updatable"
- From: adamcrume
- Re: ResultSet.updateString against DB2 giving "Column not updatable"
- From: Joe Weinstein
- Re: ResultSet.updateString against DB2 giving "Column not updatable"
- From: adamcrume
- ResultSet.updateString against DB2 giving "Column not updatable"
- Prev by Date: Re: ResultSet.updateString against DB2 giving "Column not updatable"
- Next by Date: Re: ResultSet.updateString against DB2 giving "Column not updatable"
- Previous by thread: Re: ResultSet.updateString against DB2 giving "Column not updatable"
- Next by thread: Re: ResultSet.updateString against DB2 giving "Column not updatable"
- Index(es):
Relevant Pages
|