Posted: Tue May 22, 2007 6:09 pm Post subject: Error casting empty string as DATE in V6
Apprentice
Joined: 28 Sep 2004 Posts: 40 Location: Melbourne Australia
In V5 if I cast an empty string as a DATE I get a value of 0002-12-31
In V6 I get a casting exception
What I'd actually like is to be able to get a value of 00000000 into an 8 byte CWF format field as a lot of my host apps other than by an MRM default like a NullLiteralFill
Posted: Wed May 23, 2007 1:12 pm Post subject: Re: Error casting empty string as DATE in V6
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
timjohnarm wrote:
In V5 if I cast an empty string as a DATE I get a value of 0002-12-31
In V6 I get a casting exception
What I'd actually like is to be able to get a value of 00000000 into an 8 byte CWF format field as a lot of my host apps other than by an MRM default like a NullLiteralFill
The V6 behavior is the improved behavior. What you have is that you need to check your definition of the field in the message set. Make sure that a null value defaults to what you want (in this case '00000000').
As well make sure that the field is marked as nillable.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum