pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Boris Matkov <borism@devart.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6236: Query execution bug
Date: Fri, 30 Sep 2011 11:41:25 GMT
Message-ID: <201109301141.p8UBfPFc054882@wwwmaster.postgresql.org> (raw)


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)
)



view thread (2+ messages)  latest in thread

Message-ID: <201109301141.p8UBfPFc054882@wwwmaster.postgresql.org>
Permalink:  ../201109301141.p8UBfPFc054882@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201109301141.p8UBfPFc054882@wwwmaster.postgresql.org

 · 

reply

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: borism@devart.com
  Subject: Re: BUG #6236: Query execution bug
  In-Reply-To: <201109301141.p8UBfPFc054882@wwwmaster.postgresql.org>
  References: <201109301141.p8UBfPFc054882@wwwmaster.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