From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "A Mohan" <abmohan75(at)rediffmail(dot)com> |
Cc: | pgsql-odbc(at)postgresql(dot)org |
Subject: | Re: Create lo Data type |
Date: | 2003-06-28 16:06:10 |
Message-ID: | 18213.1056816370@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
"A Mohan" <abmohan75(at)rediffmail(dot)com> writes:
> To create lo type we gave the following SQL.
> CREATE TYPE lo (
> internallength=4, externallength=10,
> input=int4in, output=int4out,
> default='', passedbyvalue
> );
> But we could not create this lo type.
You can't cheat like that anymore in defining a type. You have to
provide real I/O functions for it.
A more appropriate way to define LO in 7.3 is as a domain:
CREATE DOMAIN lo AS int4;
(although actually I'd think it should be a domain of OID not INT4).
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Hiroshi Inoue | 2003-06-30 04:14:02 | Re: Client software vs cursor problem? |
Previous Message | Jeff Eckermann | 2003-06-28 15:24:05 | Re: Access97 to pgSQL, error Bad boolean external representation |