BUG #6212: PREPARE(pseudotype) should be blocked off

From: "Caleb Welton" <Caleb(dot)Welton(at)emc(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6212: PREPARE(pseudotype) should be blocked off
Date: 2011-09-16 17:10:56
Message-ID: 201109161710.p8GHAuLK071824@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6212
Logged by: Caleb Welton
Email address: Caleb(dot)Welton(at)emc(dot)com
PostgreSQL version: 9.0
Operating system: OSX
Description: PREPARE(pseudotype) should be blocked off
Details:

statements such as:
PREPARE p1(anyelement) AS SELECT quote_literal($1);
PREPARE p2(internal) AS SELECT int2recv($1);

Should not be allowed.

They can result in peculiar behavior such as the following:

execute p1('hello')
ERROR: cannot display a value of type anyelement

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2011-09-16 18:11:11 Re: BUG #6212: PREPARE(pseudotype) should be blocked off
Previous Message Euler Taveira de Oliveira 2011-09-16 15:01:12 Re: Timezone issues with Postrres