Re: [HACKERS] create function bug?

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Ewan Mellor <em(at)nexus(dot)co(dot)uk>
Cc: Brett McCormick <brett(at)work(dot)chicken(dot)org>, pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] create function bug?
Date: 1998-02-06 02:53:37
Message-ID: 34DA7B31.F4BCDA46@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> is it safe to assume someone put this code in the wrong place (not in
> xlateSqlType so it would apply to all types)? is the grammar the best
> place for this "type aliasing"? would it be safe to modify the create
> function grammer to call xlateSqlType (so long as opaque does not get
> aliased to anything? ;)
> > > Using a snapshot from two days ago on a i586-pc-linux-gnu using
> > > linux-elf template: <snip>
> > > I can use the integer type in tables, but not in functions. Is this a
> > > bug?

This behavior must have been in the code for a long time. Anyway, I'll fix it
for v6.3 (I have some other similar fixes for function names ready to commit
and I'll do both at the same time).

"integer" is translated into "int4" in the parser, to avoid having to
replicate the declarations for the support code. Specify the actual type name
and your declaration will work now.

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim B. Mikheev 1998-02-06 04:35:05 what standard say ...
Previous Message Thomas G. Lockhart 1998-02-06 02:28:07 Re: [HACKERS] Re: [QUESTIONS] impossible insert data into VARCHAR