Re: [gnome-db] GnomeDbForm



On Fri, 2003-10-31 at 06:11, Paisa Seeluangsawat wrote:
> Which makes me wonder, why does libgda has NULL as a type and not as a
> value?  All I found was,
> 
TYPE_NULL represents a NULL value. It was the best way we found for
knowing when a value is NULL. Since doing it in the value, would mean
returning NULL for strings, but what for integers, floats, etc?

> http://mail.gnome.org/archives/gnome-db-list/2003-April/msg00069.html
> 
> > We decided long ago that it was better to have a separate type for
> > NULL values, to avoid the need to have different cases for each
> > type's real NULL value (for instance, how to specify a NULL in an
> > integer?)
> 
> However, it's pretty simple to add a member 'bool is_null' into
> GdaValue.  Memory probably isn't the issue since the size of GdaValue
> is already 48.  Alternatively, if we make is_bull a bit set on
> GdaType, the size of GdaValue wouldn't change at all.  Speed probably
> isn't the issue either.  There are other much bigger overheads in
> using SQL and/or libgda.
> 
right, that's another way. I don't remember right now if there were
other issues.

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]