• 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: Gennady Kushnir <email@hidden>
  • Date: Tue, 17 Mar 2009 23:11:45 +0300

> If it's MySQL your jdbc connection url should probably have:
> ....?zeroDateTimeBehavior=convertToNull
WOW! that worked!
Thanks a lot!

2009/3/17 Lachlan Deck <email@hidden>:
> On 18/03/2009, at 4:48 AM, Gennady Kushnir wrote:
>
>> Hello list.
>> Is there some known hint to get rid with exception raised when dealing
>> with zero dates in SQL?
>> I'm taking data from database maintained with a third party program.
>
> What type of database?
>
>> When a date is undefined that program puts "0000-00-00" into database
>> which is acceptable for SQL but raises an exception in WO.
>> How can I make EOF treat that value normally returning null for date
>> in corresponding EnterpriseObject?
>
> If it's MySQL your jdbc connection url should probably have:
> ....?zeroDateTimeBehavior=convertToNull
>
> 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

References: 
 >Zero dates "0000-00-00" (From: Gennady Kushnir <email@hidden>)
 >Re: Zero dates "0000-00-00" (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: Zero dates "0000-00-00"
  • Next by Date: .woo and display groups
  • Previous by thread: Re: Zero dates "0000-00-00"
  • Next by thread: Fwd: NDN:
  • Index(es):
    • Date
    • Thread