• 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: Zero dates "0000-00-00"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zero dates "0000-00-00"


  • Subject: Re: Zero dates "0000-00-00"
  • From: Lachlan Deck <email@hidden>
  • Date: Thu, 23 Apr 2009 12:16:10 +1000

On 23/04/2009, at 9:54 AM, Andrew Lindesay wrote:

I've stumbled on a problem related to this issue. The database is MySQL again and the zero dates are widely used there. What causes my problem is that when an EO is fetched and it had a zero date set for some column, the corresponding property is set to null, so when I edit and try to save the modified object I get an exception because the column that contained the zero date does not allow null. Do you know if there is some work around for this ?

Perhaps a good way forward with this is to use a custom data type which could handle these awkward situations by converting to and from the "right" types.

That sounds like the easiest way to go.

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: Zero dates "0000-00-00"
      • From: Katya Yurukova <email@hidden>
References: 
 >Re: Zero dates "0000-00-00" (From: Katya Yurukova <email@hidden>)
 >Re: Zero dates "0000-00-00" (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: Zero dates "0000-00-00"
  • Next by Date: Re: Deploying a framework as a JAR?
  • Previous by thread: Re: Zero dates "0000-00-00"
  • Next by thread: Re: Zero dates "0000-00-00"
  • Index(es):
    • Date
    • Thread