List:MySQL and Java« Previous MessageNext Message »
From:mmatthew Date:January 21 2003 2:13pm
Subject:Re: asda
View as plain text  
> 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.
Thread
asdaMauno Ryytty21 Jan
  • Re: asdammatthew21 Jan