From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Gaetano Mendola <mendola(at)bigfoot(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: invalid type internal size -1 |
Date: | 2004-05-14 15:31:11 |
Message-ID: | 23040.1084548671@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Gaetano Mendola <mendola(at)bigfoot(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-05-14 16:26:32 | Re: Bogus permissions display in 7.4 |
Previous Message | Tom Lane | 2004-05-14 15:20:17 | Re: invalid type internal size -1 |