Subject | Re: [firebird-support] IBPP - Null Fields? |
---|---|
Author | Olivier Mascia |
Post date | 2004-06-21T07:09:07Z |
On 28/05/2004 23:55 GMT+1, barfingdog_2004 wrote:
All Get() methods take special care *not* to touch the user variable, if
the column is NULL. Setting the Date variable to any value when reading
a NULL would be illogical and mostly incorrect.
--
Olivier Mascia
> Hi Experts:Subscribe to the email list before posting.
>
> Yea, I know, this is best posted to the IBPP
> discussion group.
>
> My attempt to e-mial that group failed, with
> a complaint about an e-mail address. I don't
> know if my message got through. IBPP's archives
> have been updated today, but I don't see my post
> from over an hour ago. If my message has been
> received, I don't know if it will be another hour,
> another week, or another month, before I can see
> the post, and responses to it, in the archive.
> IBPP::Date date_val;Of course.
> st->Get("START_DATE", date_val);
> date_val.GetDate(year, month, day);
>
> This particular record has no start date
> specified. The Get() returns fine, the GetDate()
> throws an exception.
> What do I put between the Get() and theAll Get() methods signal a SQL NULL by returning 'true'.
> GetDate() calls to test for a NULL entry in the
> field?
All Get() methods take special care *not* to touch the user variable, if
the column is NULL. Setting the Date variable to any value when reading
a NULL would be illogical and mostly incorrect.
--
Olivier Mascia