Re: Data types mapping






On Mon, 24 Jan 2000 16:35:37 Rodrigo Moya wrote:
> In fill_field_values(), for each field, I
> now set
> > the field->value->_d and the field->value->_u.
> >
[snip]
> Yes, replace the line (in gda-postgres.c - GDA_Recordset_describe()
> function):
>
> field->gdaType     = GDA_TypeVarchar;
>
> with
>
> field->gdaType = gda_postgres_sql2gdatype(server_field->sql_type);

i have to do the job twice? there are type settings in each of the
fields
(value->_d) and also in server_field->gdaType.

i'll use sql2gdatype in fill_fields too, but IMHO there should be a more
elegant way ...

*thinking*

stephan

-------------------------------------------------------------------
"Life is what happens to you while you're busy making other plans."
                                                        John Lennon
-------------------------------------------------------------------




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