Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #3943: ecpg doesn't like "inet" operator


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: "Arnaud" <arnaud(dot)desmier(at)free(dot)fr>
  • Cc: pgsql-bugs(at)postgresql(dot)org
  • Subject: Re: BUG #3943: ecpg doesn't like "inet" operator
  • Date: Fri, 08 Feb 2008 16:42:47 -0500
  • Message-id: <6993(dot)1202506967(at)sss(dot)pgh(dot)pa(dot)us>

"Arnaud" <arnaud(dot)desmier(at)free(dot)fr> writes:
>   EXEC SQL SELECT text(inet :ip_address) INTO :ip_result;

This is incorrect, and always has been, but 8.3 is more picky about it.
Use a cast instead, eg

>   EXEC SQL SELECT text(:ip_address :: inet) INTO :ip_result;

			regards, tom lane



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group