From: cadili@gesp.it
To: pgsql-bugs@postgresql.org
Subject: BUG #11484: 42804: il tipo del parametro 69 (numeric) non combacia con quello usato alla preparazione del piano
Date: Wed, 24 Sep 2014 16:23:42 +0000
Message-ID: <20140924162342.17173.55401@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 11484
Logged by: Francesco Cadili
Email address: cadili@gesp.it
PostgreSQL version: 9.3.5
Operating system: Ubuntu 12.04.05 LTS
Description:
The PSQL code execute a dynamic query:
The test is in two steps:
1. The code execute a query on a table forcing the type to integer.
exec 'select istat::integer as istat from
import.c070101_gestore_3459_wgs84u32n group by istat order by istat';
2. the code execute a similar query in another table without casting. The
type of the column is number(10,0)
exec 'select istat as istat from import.c070101_gestore_3459_wgs84u32n group
by istat order by istat';
The result of the test is that the first query is executed whereas the
second rise an 42804 error.
Recreating the function remove the error till a new sequence of steps is
performed.
The error also occur executing first step 2 and than 1. In this case the
error is raised after step 1.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: cadili@gesp.it
Subject: Re: BUG #11484: 42804: il tipo del parametro 69 (numeric) non combacia con quello usato alla preparazione del piano
In-Reply-To: <20140924162342.17173.55401@wrigleys.postgresql.org>
References: <20140924162342.17173.55401@wrigleys.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