pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Sylvain Leroux <sl20@wanadoo.fr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Using BigInteger as argument to AbstractJdbc2Statement.setObject
Date: Wed, 05 Aug 2009 23:13:19 +1200
Message-ID: <4A79694F.9060404@opencloud.com> (raw)
In-Reply-To: <4A79587F.6010603@wanadoo.fr>
References: <4A79587F.6010603@wanadoo.fr>

Sylvain Leroux wrote:

> Moreover other scripting languages for the Java platform may exhibit the
> same behavior. So, it would be great if we have support for passing
> BigInteger as argument to the setObject method in prepared statements.
> Even if it's not required by the JDBC API.
> 
> Best of all, the patch is trivial as you will see: I send the result of
> a ``cvs diff -u8pN'' as an attachment.

Why NUMERIC instead of an integer type?

Might as well make setBigInteger() private if you're not also going to
expose it on PGStatement (I don't think it needs to be exposed there)

Incidentally, the JDBC spec does provide a standard mapping from
BigDecimal (not BigInteger) to NUMERIC.

-O



view thread (7+ messages)  latest in thread

Message-ID: <4A79694F.9060404@opencloud.com>
Permalink:  ../4A79694F.9060404@opencloud.com/
Also on:    postgresql.org/message-id/4A79694F.9060404@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, sl20@wanadoo.fr
  Subject: Re: Using BigInteger as argument to AbstractJdbc2Statement.setObject
  In-Reply-To: <4A79694F.9060404@opencloud.com>
  References: <4A79587F.6010603@wanadoo.fr> <4A79694F.9060404@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