Re: BUG #2811: Error determining param type in prepared statement of unused variable

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ross Cohen" <rcohen(at)snurgle(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2811: Error determining param type in prepared statement of unused variable
Date: 2006-12-06 22:55:32
Message-ID: 3364.1165445732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Ross Cohen" <rcohen(at)snurgle(dot)org> writes:
> PREPARE demo (unknown) AS SELECT 1;
> ERROR: could not determine data type of parameter $1

This doesn't seem like a bug to me. The parser needs to be able to
resolve the types of any unknown parameters, and you've not given it
enough information to do that.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ross Cohen 2006-12-06 23:48:04 Re: BUG #2811: Error determining param type in prepared statement of unused variable
Previous Message Alex_Piyevsky 2006-12-06 22:46:06 Re: BUG #2812: Transaction is aborted after error