I've updated bug 647633 <https://bugzilla.gnome.org/show_bug.cgi?id=647633>,
with a working patch to Add a GdaNull type. I've tested using GI+PyGObject
and works well.

Please review it.

A step back is done with providers support, because you need to ensure they
manage correctly GValue as GdaNull types using the provided API (not
modified anyway). But in some cases the assumption of GDA_TYPE_NULL =
G_TYPE_NONE is wrong now, and that a GDA null is an empty unset value is
changed too. Now when you create a GValue to represent a NULL in a database
you have a G_TYPE_BOXED derived type.

This patch fix SQLite provider, meta data and other internal parts that use
that provider.

Last time I've tested, GDAui is broken, may be because the assumption on
GDA_TYPE_NULL represents.

Must be ported to the new GdaNull.

I'm not sure if this is an ABI break! not acceptable for 4.x series, but is
required in order to improve GI support on GDA in stable series.



2011/4/13 Murray Cumming <[email protected]>

> On Mon, 2011-04-11 at 12:03 +0200, Murray Cumming wrote:
> > > > The PyGObject developers don't seem happy with this:
> > > > https://bugzilla.gnome.org/show_bug.cgi?id=647272#c2
> > >
> > > I don't know why Libgda uses G_TYPE_INVALID instead of G_TYPE_NONE
> > > (some historical reason, lack of knowledge,...).
> > >
> > > >
> > > > Maybe it's something we can change in libgda-5.0.
> > >
> > > I guess that can be done, I have to check the impacts first. However I
> > > can't change the V4 behaviour, so for the GObject introspection, a
> > > solution needs to be found.
>
> I've filed this bug here:
> https://bugzilla.gnome.org/show_bug.cgi?id=647633
>
> It looks like we need a custom GDA_TYPE_NULL GType because G_TYPE_NONE
> can't be used with GValue:
> https://bugzilla.gnome.org/show_bug.cgi?id=647272#c4
>
> --
> [email protected]
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gnome-db-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gnome-db-list
>



-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates:
LIBRE)



-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates:
LIBRE)
_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to