Search Postgresql Archives

Re: Typecast

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

 





On Fri, Apr 15, 2011 at 10:29 PM, Nick Raj <nickrajjain@xxxxxxxxx> wrote:
Hi,
Can anybody tell me how to typecast data type Point into Datum?

Thanks
Nick

Assuming you are referring to  c-code,

Point somepoint;
Datum result;

result = PointPGetDatum(&somepoint)

You can also checkout src/backend/utils/adt/geo_ops.c which has code for conversion between
datum and point and vice-versa.



--
Regards,
Chetan Suttraway
EnterpriseDB, The Enterprise PostgreSQL company.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux