• 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
Help: a boolean attribute always saves as null
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help: a boolean attribute always saves as null


  • Subject: Help: a boolean attribute always saves as null
  • From: Lachlan Deck <email@hidden>
  • Date: Fri, 20 Apr 2007 15:58:53 +1000

Hi all,

Okay, something might have changed with the model plist (with an update from WOLips or something) but I can't see it :-/

The data is being received via soap (and correctly applied to the instance, as I've checked both the incoming and after setting the value doing a valueForKey on the instance - which returns a Boolean that is *not* null.

I've turned on adaptor logging to see what's going on. (See bogusBooleanAttribute in sql)

However when saving the context I get:

[2007-04-20 15:42:55 EST] <WorkerThread15> === Begin Internal Transaction
[2007-04-20 15:42:55 EST] <WorkerThread15> evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "UPDATE Client SET created = ?, bogusBooleanAttribute = NULL, modified = ? WHERE id = ?" withBindings: 1:2007-02-27 16:16:28(created), 22007-04-20 15:42:55(modified), 5:59(id)>
[2007-04-20 15:42:55 EST] <WorkerThread15> === Commit Internal Transaction


In the plist its definition is:
       {
           allowsNull = Y;
           columnName = bogusBooleanAttribute;
           externalType = TINYINT;
           name = bogusBooleanAttribute;
           valueClassName = NSNumber;
           valueType = c;
       },

Why doesn't it have a parameter like the others?

with regards,
--

Lachlan Deck



_______________________________________________
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: Help: a boolean attribute always saves as null
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: Re: Snapshot problems
  • Next by Date: Re: Help: a boolean attribute always saves as null
  • Previous by thread: [ANN:OT] For this that have not seen this...
  • Next by thread: Re: Help: a boolean attribute always saves as null
  • Index(es):
    • Date
    • Thread