How To Get Numetic Value!!! using C ???

From: Oleg Shalnev <ovs(at)megalog(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: How To Get Numetic Value!!! using C ???
Date: 2002-11-25 14:07:54
Message-ID: 3DE22EBA.3030302@megalog.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tommi Maekitalo 2002-11-25 14:21:41 performanceboost with PostgreSQL
Previous Message Bruno Wolff III 2002-11-25 13:58:41 Re: Few questions