On 1 February 2012 20:31, Piotr Pokora <[email protected]> wrote:

>
> Hi!
>
> > The gda_data_model_get_column_name() and
> gda_data_model_get_column_title()
> > are merely wrappers around the gda_data_model_describe_column() function.
> >
> > AFAIK no API returns the results you want. What Libgda could do is map
> each
> > returned column to a  GdaStatement expression if the statement executed
> is
> > a SELECT. In your example the 1st column could be mapped to the
> expression
> > "p.firstname AS name".  Then it would be possible to add more attributes
> to
> > the GdaColumn, the ones you want (i.e. the field name queried for
> example).
>
> Yes, this should be supported IMO.
> But I wouldn't depend on data returned from provider. It'll use way to
> much resources, while they simply can be computed (on demand only) from
> executed query (valid or not valid one).
>
>
I actually don't think it'll use any significant amount of ressources, but
then how about then I add another flag to GdaStatementModelUsage to specify
that (for example GDA_STATEMENT_MODEL_COMPUTE_EXTRA_COLUMN_ATTRIBUTES)?

Vivien
_______________________________________________
gnome-db-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-db-list

Reply via email to