How To Get Numetic Value!!! using C ??? - Mailing list pgsql-general

From Oleg Shalnev
Subject How To Get Numetic Value!!! using C ???
Date
Msg-id 3DE22EBA.3030302@megalog.ru
Whole thread Raw
List pgsql-general
Hi All!


I want to GetValue numeric type from binary cursor, but I have no ideas
how to do it.
Now I am using

double test;
test=atof((char*)GetValue(0,0));
in C function and doing
to_char(my_numeric_field, '9999999999999D99')
in database selection.
May be there is another normal way to do it.

Thanks a lot!!!
Oleg Shalnev


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: error on last line of function
Next
From: Tommi Maekitalo
Date:
Subject: performanceboost with PostgreSQL