pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Caleb Welton <Caleb.Welton@emc.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6212: PREPARE(pseudotype) should be blocked off
Date: Fri, 16 Sep 2011 17:10:56 GMT
Message-ID: <201109161710.p8GHAuLK071824@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6212
Logged by:          Caleb Welton
Email address:      Caleb.Welton@emc.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



view thread (4+ messages)  latest in thread

Message-ID: <201109161710.p8GHAuLK071824@wwwmaster.postgresql.org>
Permalink:  ../201109161710.p8GHAuLK071824@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201109161710.p8GHAuLK071824@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: Caleb.Welton@emc.com
  Subject: Re: BUG #6212: PREPARE(pseudotype) should be blocked off
  In-Reply-To: <201109161710.p8GHAuLK071824@wwwmaster.postgresql.org>
  References: <201109161710.p8GHAuLK071824@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox