• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Potential causes of duplicate key insertion by the eof
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Potential causes of duplicate key insertion by the eof (From: Des Oates <email@hidden>)

  • Prev by Date: Potential causes of duplicate key insertion by the eof
  • Next by Date: Re: java client relationship bug?
  • Previous by thread: Potential causes of duplicate key insertion by the eof
  • Next by thread: Re: Potential causes of duplicate key insertion by the eof
  • Index(es):
    • Date
    • Thread