From: | Nick Raj <nickrajjain(at)gmail(dot)com> |
---|---|
To: | Chetan Suttraway <chetan(dot)suttraway(at)enterprisedb(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Typecast |
Date: | 2011-04-19 05:56:35 |
Message-ID: | BANLkTikQMGvRAEaTp=JWp9giFXz4Gu39Xg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks dude
On Mon, Apr 18, 2011 at 2:25 PM, Chetan Suttraway <
chetan(dot)suttraway(at)enterprisedb(dot)com> wrote:
>
>
> On Fri, Apr 15, 2011 at 10:29 PM, Nick Raj <nickrajjain(at)gmail(dot)com> 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 <http://www.enterprisedb.com/>, The Enterprise PostgreSQL<http://www.enterprisedb.com/>
> company.
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Júlio Almeida | 2011-04-19 08:51:06 | create table sintax |
Previous Message | Scott Marlowe | 2011-04-19 03:30:58 | Re: Help - corruption issue? |