Re: bad typenames sent to postgresql server

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Scot Loach" <sloach(at)sandvine(dot)com>, <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: bad typenames sent to postgresql server
Date: 2004-10-04 21:25:17
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E43068DB@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner(at)postgresql(dot)org
> [mailto:pgsql-odbc-owner(at)postgresql(dot)org] On Behalf Of Scot Loach
> Sent: 04 October 2004 22:11
> To: pgsql-odbc(at)postgresql(dot)org
> Subject: [ODBC] bad typenames sent to postgresql server
>
> I've recently updated my CVS, and I'm now getting parsing
> errors from the backend when I use a PREPARE statement with
> varchar in the types clause.
> This seems to be because of the following changes made to
> pgtypes.c in version 1.63.
>
> I looked at the postgresql parser, and sure enough, the
> varchar(), char() etc are not accepted.
> Does anyone know what the intention of this change was? (the
> comment says "Map (var)char type to SQL type more properly")
> Is this in fact a bug or am I missing something?

Bug I /think/. The brackets were added to numeric, varchar and char, all
of which might have them when defining tables etc, however, when used as
casts or in type clauses I'm not surprised there are problems.

I'm not sure why they were added though (although I don't doubt Hiroshi
had a good reason). Can anyone remember? If not, istm, that the best
solution is to remove them again from there, and add them again in less
generic places if the original problem is found again.

Regards, Dave.

Browse pgsql-odbc by date

  From Date Subject
Next Message anthony.caduto 2004-10-04 21:35:19 Re: Schema support
Previous Message Dave Page 2004-10-04 21:15:40 Schema support