Re: [gnome-db] Introspection - DataModel structures
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Murray Cumming <murrayc murrayc com>
- Cc: Vivien <malerba gnome-db org>, gnome-db-list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Introspection - DataModel structures
- Date: Sun, 25 Apr 2004 18:01:23 +0200
On Sun, 2004-04-25 at 17:46 +0200, Murray Cumming wrote:
> On Fri, 2004-04-09 at 08:50, Vivien wrote:
> > Yes, the number and type of columns returned for each schema should be the
> > same for every provider (note that this is not yet the case and some work
> > needs to be done on some of the providers).
> >
> > The "format" of each returned data model for each schema is documented in
> > libgda's doc (such as
> > http://www.gnome-db.org/docs/libgda/libgda-provider-class.html#LIBGDA-PROVIDER-GET-SCHEMA).
>
> Are the types documented anywhere. For instance, when getting the
> GDA_CONNECTION_SCHEMA_FIELDS, the field type column is of type
> GDA_VALUE_TYPE_STRING, but I would expect it to be GDA_VALUE_TYPE_TYPE.
>
> This looks like a bug to me.
>
it should be GDA_VALUE_TYPE_TYPE, if the docs say _STRING, it's a bug
there. AFAIK, all providers use the _TYPE one.
> > To cope with this problem in libmergeant (which uses get_schema a lot to
> > build and maintain its dictionnary), I've created some functions which
> > check that the returned data model in in the right "format" (see the
> > mg_resultset_check_data_model() in mg-result-set.[ch ]).
>
> Yes, looking at the use of that function, mergeant does seem to expect a
> GDA_VALUE_TYPE_STRING, rather than a GDA_VALUE_TYPE_TYPE.
>
hmm, this seems wrong. Vivien?
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]