Re: invalid type internal size -1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: invalid type internal size -1
Дата
Msg-id 23040.1084548671@sss.pgh.pa.us
обсуждение исходный текст
Ответ на invalid type internal size -1  (Gaetano Mendola <mendola@bigfoot.com>)
Список pgsql-hackers
Gaetano Mendola <mendola@bigfoot.com> writes:
> create type email ( INPUT = email_in,
>                      OUTPUT = email_out,
>                      RECEIVE = email_recv,
>                      SEND = email_send,
>                      INTERNALLENGTH = VARIABLE,
>                      PASSEDBYVALUE = f,
>                      ALIGNMENT = int4 );

Oh, actually the problem is that PASSEDBYVALUE does not take an
argument, so you are declaring the thing as passed-by-value, which
is wrong.  Leave out the PASSEDBYVALUE line altogether.

The CREATE TYPE parser should probably be tightened so it complains
about the above.  I'll see what I can do about it.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: invalid type internal size -1
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Bogus permissions display in 7.4