BUG #6236: Query execution bug - Mailing list pgsql-bugs

From Boris Matkov
Subject BUG #6236: Query execution bug
Date
Msg-id 201109301141.p8UBfPFc054882@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #6236: Query execution bug
List pgsql-bugs
The following bug has been logged online:

Bug reference:      6236
Logged by:          Boris Matkov
Email address:      borism@devart.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)
)

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: FW: PostGre compatible to RHEL 6.1
Next
From: Tom Lane
Date:
Subject: Re: BUG #6236: Query execution bug