Re: [gnome-db] additions to libgda



On Fri, 2005-04-22 at 02:16 +1200, Dru wrote:
> Hello.
> 
> I want to get the tablename of fields in a returned record set. I dont 
> think there is a way to do this at the moment in gda, but i know how to 
> code it postgresql and mysql.  It would be a wrapper around PQftable() 
> in postgresql and mysql_fetch_field_direct()->table.   Maybe a function 
> called gda_data_model_get_column_table() ?
> 
GdaColumn has the table_name field, although it's not filled in by all
providers. It should need just a call to PQftable in psql, etc.

> Does a GdaDataModel always get returned from a query commands even if it 
> isn't a select statement?  Is there a way to tell after a query is sent 
> if it was a non-query or normal query? 
> 
it returns an empty model, with no columns and no rows.
-- 
Rodrigo Moya <rodrigo gnome-db org>




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