cast hex to int in plpgsql - Mailing list pgsql-general

From Janek Sendrowski
Subject cast hex to int in plpgsql
Date
Msg-id trinity-932130e9-c987-4843-af4d-b8379dba12bb-1388528929792@3capp-webde-bs02
Whole thread Raw
Responses Re: cast hex to int in plpgsql
List pgsql-general
Hi,

How can I realize the line?
v_res := cast(x'v_tmp' as bigint);

v_tmp is a text variable with hex digits.

this works:
v_res := cast(x'6de14a8b478ac' as bigint);

I think its about quoting

Janek


pgsql-general by date:

Previous
From: peterlen
Date:
Subject: Re: Format of Pioint datatype.... lat/long or long/lat??
Next
From: Adrian Klaver
Date:
Subject: Re: Format of Pioint datatype.... lat/long or long/lat??