Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWxmx-0003t2-Tx for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Sep 2014 01:24:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XWxmw-0006JG-LQ for pgsql-bugs@arkaria.postgresql.org; Thu, 25 Sep 2014 01:24:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XWpMS-0000zz-Dh for pgsql-bugs@postgresql.org; Wed, 24 Sep 2014 16:24:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XWpMI-0000yp-M0 for pgsql-bugs@postgresql.org; Wed, 24 Sep 2014 16:24:09 +0000 MIME-Version: 1.0 Subject: BUG #11484: 42804: il tipo del parametro 69 (numeric) non combacia con quello usato alla preparazione del piano To: pgsql-bugs@postgresql.org From: cadili@gesp.it Date: Wed, 24 Sep 2014 16:23:42 +0000 Message-ID: <20140924162342.17173.55401@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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