BUG #6236: Query execution bug

From: "Boris Matkov" <borism(at)devart(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6236: Query execution bug
Date: 2011-09-30 11:41:25
Message-ID: 201109301141.p8UBfPFc054882@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: 6236
Logged by: Boris Matkov
Email address: borism(at)devart(dot)com
PostgreSQL version: 9.0.0.1
Operating system: Windows
Description: Query execution bug
Details:

INSERT INTO btest0 (id, name) VALUES ((SELECT DISTINCT id FROM btest0 WHERE
name = $1 LIMIT 1), $1) - was executed successfully

INSERT INTO btest0 (name,id) VALUES ($1, (SELECT DISTINCT id FROM btest0
WHERE name = $1 LIMIT 1)) - I got error:
---------------------------
inconsistent types deduced for parameter $1
---------------------------

Script for the btest0 table creating:

CREATE TABLE btest0
(
id integer NOT NULL,
name character varying(50) NOT NULL,
value double precision,
CONSTRAINT pk_btest0 PRIMARY KEY (id)
)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Karl Wright 2011-09-30 13:34:52 One-click installer, Windows 7 32-bit, and icacls.exe
Previous Message Henk Enting 2011-09-30 08:43:41 Re: BUG #6231: weird to_timestamp behaviour with out of range values