pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: getXXX methods
Date: Wed, 07 Jul 2004 13:48:51 +1200
Message-ID: <40EB5683.90301@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0407062020270.26570@leary.csoft.net>
References: <1088795907.1536.118.camel@localhost.localdomain>
	<Pine.BSO.4.56.0407061336560.12042@leary.csoft.net>
	<1089145387.1506.65.camel@localhost.localdomain>
	<Pine.BSO.4.56.0407061559110.373@leary.csoft.net>
	<1089154614.1508.70.camel@localhost.localdomain>
	<40EB385F.9030704@opencloud.com>
	<1089162095.1508.173.camel@localhost.localdomain>
	<40EB4D85.6080100@opencloud.com>
	<Pine.BSO.4.56.0407062020270.26570@leary.csoft.net>

Kris Jurka wrote:

> The
> DataTruncation API is organized around byte sizes and just doesn't seem
> right for numeric data.

There is support throughout that API for "unknown sizes" which seems 
appropriate when you're not dealing with explicitly-sized types. And 
even types such as varchar don't map directly to bytes anyway..

> Even if the spec does imply that a warning 
> shuold be issued (which is not clear to me), I can't imagine why 
> anyone would want this.  If I want truncation I'll do it myself, otherwise 
> I want any error to immediately raise a red flag and put the brakes on 
> processing.

I tend to agree -- but Dave evidently has a use for it, in which case 
truncation+warning seems a lesser evil than silent truncation.

> How many people really check for warnings anyway?

I hate this argument. If we don't generate any warnings, of course no 
one will check for them!

-O



view thread (17+ messages)  latest in thread

Message-ID: <40EB5683.90301@opencloud.com>
Permalink:  ../40EB5683.90301@opencloud.com/
Also on:    postgresql.org/message-id/40EB5683.90301@opencloud.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: oliver@opencloud.com, books@ejurka.com, pg@fastcrypt.com
  Subject: Re: getXXX methods
  In-Reply-To: <40EB5683.90301@opencloud.com>
  References: <1088795907.1536.118.camel@localhost.localdomain> <Pine.BSO.4.56.0407061336560.12042@leary.csoft.net> <1089145387.1506.65.camel@localhost.localdomain> <Pine.BSO.4.56.0407061559110.373@leary.csoft.net> <1089154614.1508.70.camel@localhost.localdomain> <40EB385F.9030704@opencloud.com> <1089162095.1508.173.camel@localhost.localdomain> <40EB4D85.6080100@opencloud.com> <Pine.BSO.4.56.0407062020270.26570@leary.csoft.net> <40EB5683.90301@opencloud.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