Strange Prepare bug

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Strange Prepare bug
Date: 2003-01-29 04:39:50
Message-ID: 1043814876.76461.88.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I've trimmed this query down as much as possible (started out much
larger), it no longer causes the error.

PREPARE "pg_psql_dd2"(text,text) AS
SELECT true
FROM (
SELECT true
FROM pg_catalog.pg_proc p,
pg_catalog.pg_name_pattern( $2 ) AS (schpat text, propat text)
WHERE p.prorettype <> 'pg_catalog.cstring'::pg_catalog.regtype
) AS tt,
(SELECT $1 AS cmd) AS cmd;

ERROR: Parameter '$1' is out of range

--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-01-29 04:40:58 Re: [ADMIN] Cannot connect to the database (PG 7.3)
Previous Message eric@did-it.com 2003-01-29 04:00:20 Re: tsearch comments