problem casting varchar to inet

From: Roman Neuhauser <neuhauser(at)sigpipe(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: problem casting varchar to inet
Date: 2005-07-22 12:20:31
Message-ID: 20050722122031.GA16687@isis.sigpipe.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

select cast(coalesce(nullif('', trim(callingip)), '127.0.0.1') as inet)

ERROR: invalid input syntax for type inet: ""

what is it trying to tell me?

--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-07-22 12:50:58 Re: problem casting varchar to inet
Previous Message Roman Neuhauser 2005-07-22 11:37:01 Re: Insert into ... Select ... From ... too intelligent transaction