• 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: cannot update primary-key error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cannot update primary-key error


  • Subject: Re: cannot update primary-key error
  • From: "Albert Jagnow" <email@hidden>
  • Date: Wed, 16 Feb 2005 13:43:48 -0600
  • Importance: normal
  • Priority: normal

The database is DB2. The PK type is DECIMAL in the database (the field length in DB2 is 5,0 ) and Number in Java. The Value Type is l. The internal data type is set to double in the attribute inspector. I didn't set it to double I just created the model from the database. Do you think it should be something other than that? The PK value is exposed as it is also used by this particular system as a tracking number that is printed on reports.

On Feb 16, 2005, at 1:29 PM, Chuck Hill wrote:

Which database? What data type is the PK? This can sometimes happen with exposed (class property) primary keys. I don't believe this is the root cause as I have some exposed keys and I don't get this error. IIRC, I have also seen this with OpenBase and BigDecimal primary keys when the scale in the created key and the scale in the EOModel did not match.


Chuck

_______________________________________________
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


  • Follow-Ups:
    • Re: cannot update primary-key error
      • From: Chuck Hill <email@hidden>
References: 
 >online store project help needed (From: Kris Holmes <email@hidden>)
 >Re: online store project help needed (From: Dennis Gaastra <email@hidden>)
 >cannot update primary-key error (From: "Albert Jagnow" <email@hidden>)
 >Re: cannot update primary-key error (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: cannot update primary-key error
  • Next by Date: Re: cannot update primary-key error
  • Previous by thread: Re: cannot update primary-key error
  • Next by thread: Re: cannot update primary-key error
  • Index(es):
    • Date
    • Thread