Re: understanding Datum -> char * -> Datum conversions
| От | Karel Zak |
|---|---|
| Тема | Re: understanding Datum -> char * -> Datum conversions |
| Дата | |
| Msg-id | Pine.LNX.3.96.1000525124817.31465H-100000@ara.zf.jcu.cz обсуждение исходный текст |
| Ответ на | Re: understanding Datum -> char * -> Datum conversions (Louis-David Mitterrand <cunctator@apartia.ch>) |
| Ответы |
Re: understanding Datum -> char * -> Datum conversions
|
| Список | pgsql-hackers |
> > See in PG's backend source files:
> >
> > c.h - for datetype definition and Datum macros,
> > we have Datum macros for double/float types too.
> >
> > buildin.h - for datetype conversion.
> > utils/timestamp.h ...etc.
> >
> > and directory utils/adt for inspiration "how work
> > with pg types :-)
>
> I'm reading these files but still got a problem:
float32 result = (float32) palloc(sizeof(float32data)); *result = 10.5;SPI_modifytuple(relation, tupdesc, &attnum,
Float32GetDatum(result), NULL);
Right?
Karel
В списке pgsql-hackers по дате отправления: