From: victor.evangelista@caixa.gov.br
To: pgsql-bugs@postgresql.org
Subject: BUG #13880: Different procedures in same SQL
Date: Thu, 21 Jan 2016 16:53:10 +0000
Message-ID: <20160121165310.2736.59053@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: 13880
Logged by: Victor Neves
Email address: victor.evangelista@caixa.gov.br
PostgreSQL version: 9.1.9
Operating system: RedHat 4.4.7 x64
Description:
I found a different procedures in same SQL, in postgres 9.1.9.
I create a table, but i dont insert any data, after execute
insert into <table> (namecolum1, namecolum2, namecolum3, namecolum4)
select distinct 'value1', 'value2', 'value3', 'value4'
from <table> where not exists (select 1 from <table> sis where
sis.namecolum2='value2' )
Postgres says: "Query returned successfully: 0 rows affected, 1 ms execution
time."
But if I insert any data in the table and execute the SQL again, the insert
works fine!
If I truncate the table and execute de SQL, postgres says "0 rows affected"
again.
--
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: victor.evangelista@caixa.gov.br
Subject: Re: BUG #13880: Different procedures in same SQL
In-Reply-To: <20160121165310.2736.59053@wrigleys.postgresql.org>
References: <20160121165310.2736.59053@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