pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Nacos <m.nacos@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: real -> numeric -> real result different through jdbc
Date: Fri, 11 Dec 2009 17:22:19 +0000
Message-ID: <407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com> (raw)
In-Reply-To: <407fa4640912110854y551f47d8q6ba4acb048cdd4f9@mail.gmail.com>
References: <407fa4640912110805m67b2bdfr8e4ff703647b6f8b@mail.gmail.com>
	<19400.1260548963@sss.pgh.pa.us>
	<407fa4640912110854y551f47d8q6ba4acb048cdd4f9@mail.gmail.com>

> surely, it's not just a case of float4 display, type casting seems to be
affected, too.

I have run some more tests and I'd like to take this back. The reason our
equality tests fail when
extra_float_digits = 2 is this: we are constructing dynamic SQL statements
inside a PL/pgSQL
function. The SQL produced is, of course, affected by the textual
representation of REALs in effect,
hence the problems we have encountered. Thanks, this is making much more
sense now.

Michael

view thread (4+ messages)

Message-ID: <407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com>
Permalink:  ../407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com/
Also on:    postgresql.org/message-id/407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com

 · 

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: m.nacos@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: real -> numeric -> real result different through jdbc
  In-Reply-To: <407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com>
  References: <407fa4640912110805m67b2bdfr8e4ff703647b6f8b@mail.gmail.com> <19400.1260548963@sss.pgh.pa.us> <407fa4640912110854y551f47d8q6ba4acb048cdd4f9@mail.gmail.com> <407fa4640912110922g4afbd5aela91f816cbce75cf8@mail.gmail.com>

* 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