> 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 |
|---|
| • asda | Mauno Ryytty | 21 Jan |
| • Re: asda | mmatthew | 21 Jan |