• 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
mysterious EOF problem: not inserting all fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mysterious EOF problem: not inserting all fields


  • Subject: mysterious EOF problem: not inserting all fields
  • From: Jonathan Rochkind <email@hidden>
  • Date: Tue, 6 Apr 2004 13:37:23 -0500

I have an EO class, with a bunch of attributes. One of these attributes is marked non-nullible in the model, and also in the database.

When a create and insert a new one in code, of course I set this attribute. Before calling saveChanges, I check in my debugger to make sure that attribute has a value---it does. I call saveChanges. EOF validation does _not_ raise an exception, complaining that this attribute is not allowed to be null. Which I do not expect it to, of course, because that attribute is NOT null.

However, when EOF actually sends an SQL insert to the database----the insert statement does not include this attribute! And then of course my database complains about that attribute not being allowed to be null, and rejects the insert. Huh? Why is EOF not listing all attributes in the insert? Yes, the attribute in question is marked as a class property.

To make matters more confusing---this problem seems to have just randomly started. I can't figure out what I have changed to make this problem start, when the problem did not previously exist, for the same code I am testing.

Anyone have any ideas at all? I'm at my wits end here. Somehow this problem got deployed (I swear, it didn't show up in testing, that's the weird thing---although now I can reproduce it on my local machine as well as the deployment machine), so I've got to get it fixed asap.

--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: mysterious EOF problem: not inserting all fields
      • From: Dov Rosenberg <email@hidden>
  • Prev by Date: Re: Action called twice for single form submission --> SOLVED
  • Next by Date: Re: mysterious EOF problem: not inserting all fields
  • Previous by thread: Testing HTTPS Using WebServer Not AppServer
  • Next by thread: Re: mysterious EOF problem: not inserting all fields
  • Index(es):
    • Date
    • Thread