pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: the6campbells <the6campbells@gmail.com>
To: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: data set combination of integer and decimal/numeric returns wrong result type
Date: Mon, 01 Oct 2012 20:03:10 +0800
Message-ID: <5069867E.80208@ringerc.id.au> (raw)
In-Reply-To: <CAFEjsq7RmOJnnC2YSG7-Aj3_CYs5E6qc1=NUTZR+VsqwVSPgmw@mail.gmail.com>
References: <CAFEjsq4oeM25e=7Tn1X2Fe2RLMsDBqp7h9iU6Fu9nxd+ibXEng@mail.gmail.com>
	<50662D84.90202@ringerc.id.au>
	<CAFEjsq7RmOJnnC2YSG7-Aj3_CYs5E6qc1=NUTZR+VsqwVSPgmw@mail.gmail.com>

On 09/29/2012 07:11 AM, the6campbells wrote:
> select intcolumn from t1
> union
> select decimalcolumn from t2
>
> select intcolumn from t1
> union
> select numericcolum from t2
>
> then look at nullif, coalesce, case when end variants using combinations
> of the two data types

Those aren't complete, runnable statements. Provide table definitions 
and real statements if reporting a bug, please. Show expected vs actual 
results on PgJDBC and (if possible) other DBs and JDBC drivers. If 
possible provide standalone Java code that compiles and runs to 
demonstrate the bug; that way the code can be run against any patched 
driver versions to see if they fix the issue.

Also, please reply to the mailing list, not directly to me.

> compare the specification in ISO-SQL 20xx to Postgres in general and as
> applicable via the Postgres JDBC driver if that is colouring the issue etc

Quotes and page numbers / section numbers?

Please be more specific. While I could probably find the details, it's 
currently time I cannot spend on that.

--
Craig Ringer




view thread (5+ messages)  latest in thread

Message-ID: <5069867E.80208@ringerc.id.au>
Permalink:  ../5069867E.80208@ringerc.id.au/
Also on:    postgresql.org/message-id/5069867E.80208@ringerc.id.au

 · 

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-jdbc@postgresql.org
  Cc: ringerc@ringerc.id.au, the6campbells@gmail.com
  Subject: Re: data set combination of integer and decimal/numeric returns wrong result type
  In-Reply-To: <5069867E.80208@ringerc.id.au>
  References: <CAFEjsq4oeM25e=7Tn1X2Fe2RLMsDBqp7h9iU6Fu9nxd+ibXEng@mail.gmail.com> <50662D84.90202@ringerc.id.au> <CAFEjsq7RmOJnnC2YSG7-Aj3_CYs5E6qc1=NUTZR+VsqwVSPgmw@mail.gmail.com> <5069867E.80208@ringerc.id.au>

* 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