From: Date: January 21 2003 2:13pm Subject: Re: asda List-Archive: http://lists.mysql.com/java/4927 Message-Id: <63858.64.81.138.200.1043154837.squirrel@localhost.my.domain> MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 > When I change the primary key of a record and call updateRow(), mySql > driver > (2.0.14) throws an exception with following message: > > refreshRow() called on row that has been deleted or had primary key > changed > > - Updates go to database all right. > - How to prevent that exception? > > Mauno Ryytty Use a newer version of the driver. 2.0.14 didn't implement this case because it was complicated, and according to relational database theory, in almost all cases it is _not_ a good idea to change a primary key value. Connector/J 3.0.x does not have this issue.