Re: Potential causes of duplicate key insertion by the eof
Re: Potential causes of duplicate key insertion by the eof
- Subject: Re: Potential causes of duplicate key insertion by the eof
- From: Kaj Hejer <email@hidden>
- Date: Fri, 25 Mar 2005 01:22:10 +0100
On 25. mar 2005, at 00.26, Des Oates wrote:
I'm getting a SQL exception " Invalid argument value : Duplicate entry
'1121' for key 1. " The java stack trace shows the exception is
thrown when ec.saveChanges() is called, which isn't much help to me.
When I browse the table data '1121' sure enough is there. This
happens if even I start with a completely empty database.
Hi!
1) Turn sql-debugging to see what sql is sent to the database
2) print out ec.insertedObjects() to see which objects is inserted into
the ec
-Kaj :)
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden