List:MySQL and Java« Previous MessageNext Message »
From:dr.ahab Date:May 29 2003 3:56pm
Subject:how to extract a new autoindex after inserting with a CachedRowSet (possible bug)
View as plain text  
Hi List,

I am using sun.jdbc.rowSet.CachedRowSet within my app and managed to get it
to work now. The problem I have is this, if I insert a new row into the
CachedRowSet and write the data back to the db by calling
crst.acceptChanges() the data is inserted into the table allright - But, I
do not get the autocreated index for the new row back - although the API doc
states that:

"...When the method acceptChanges executes successfully, it replaces the
original value of the rowset with the current value..."

However, a crst.getObject(INDEX_COLUMN) returns null afterwards. I am using
MySQL (4.0.12) with the latest driver 3.0.8.

Is this a bug? Or am I doing something wrong? I hope that one of you gurus
out there can help me out.

Thanks, Jan

Thread
PreparedStatement gives always empty ResultsetHelmut Leininger21 May
  • Frist time with jdbcBruno Pereira21 May
    • Frist time with jdbcBruno Pereira22 May
      • Re: Frist time with jdbccolbey22 May
        • Re: Frist time with jdbcAdam Hardy22 May
          • RE: Frist time with jdbcBruno Pereira23 May
RE: PreparedStatement gives always empty ResultsetJohn Beveridge21 May
RE: Frist time with jdbcSteve Forsyth23 May
RE: PreparedStatement gives always empty ResultsetHelmut Leininger29 May
  • how to extract a new autoindex after inserting with a CachedRowSet (possible bug)dr.ahab29 May
RE: PreparedStatement gives always empty ResultsetHelmut Leininger30 May
  • Re: PreparedStatement gives always empty ResultsetMark Matthews30 May
    • Re: PreparedStatement gives always empty ResultsetAdam Hardy31 May
      • Re: PreparedStatement gives always empty ResultsetMark Matthews31 May
  • No read confirmation requests, please (was RE: PreparedStatement gives always empty Resultset)Shankar Unni30 May
    • Re: No read confirmation requests, please (was RE: PreparedStatement gives always empty Resultset)Jim Winstead1 Jun
Re: PreparedStatement gives always empty ResultsetHelmut Leininger31 May