From: | Olivier PRENANT <ohp(at)pyrenet(dot)fr> |
---|---|
To: | Alex Pilosov <alex(at)pilosoft(dot)com> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Inet type how to? |
Date: | 2000-06-02 20:40:02 |
Message-ID: | Pine.UW2.4.21.0006022238400.25295-100000@server.pyrenet.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
You're right... No way; However despite what I said befor it works.. until
text is ''; maybe this could be casted as NULL??
Regards,
On Fri, 2 Jun 2000, Alex Pilosov wrote:
> None works. I tried. There is no type that can be cast to inet. And
> inet_in has a different calling sequence, and you can't really use that.
>
> -alex
>
> On Fri, 2 Jun 2000, Bruce Momjian wrote:
>
> > > It works for me for \copy (which uses inserts)
> > >
> > > But yes, there is no way to convert text to inet, which is a pain. When it
> > > annoys me sufficiently, I think I'll write text_inet wrapping inet_in...Or
> > > just wait for someone else to do it (TODO, bruce? ;)
> > >
> >
> > We don't? What about some double-casting option?
> >
> >
>
--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
Quartier d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2000-06-02 21:28:18 | Re: config files in /data |
Previous Message | Bruce Momjian | 2000-06-02 20:38:30 | Re: Inet type how to? |