Re: Create lo Data type - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Create lo Data type
Date
Msg-id 18213.1056816370@sss.pgh.pa.us
Whole thread Raw
In response to Create lo Data type  ("A Mohan" <abmohan75@rediffmail.com>)
List pgsql-odbc
"A  Mohan" <abmohan75@rediffmail.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

pgsql-odbc by date:

Previous
From: Jeff Eckermann
Date:
Subject: Re: Access97 to pgSQL, error Bad boolean external representation
Next
From: Hiroshi Inoue
Date:
Subject: Re: Client software vs cursor problem?