Re: Create lo Data type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Create lo Data type
Дата
Msg-id 18213.1056816370@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Create lo Data type  ("A Mohan" <abmohan75@rediffmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: Access97 to pgSQL, error Bad boolean external representation
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Client software vs cursor problem?