pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergii Sinelnychenko <SSinelnychenko@bossdev.com>
To: Postgres-JDBC <pgsql-jdbc@postgresql.org>
Subject: ResultSetMetaData + CachedResultSet bug
Date: Thu, 22 Jun 2006 17:59:03 +0300
Message-ID: <032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua> (raw)

        Hello everybody!

    Today I have found a strange bug in JDBC driver (I used the last version avilable - 8.2dev-503). The problem is with VARCHAR 
fields - driver returns "-1" on "getPrecision()" call. But class javax.sql.rowset.RowSetMetaDataImpl in its "setPrecision()" method 
requires values of 0 and more (javadoc sais "precision the total number of decimal digits; must be <code>0</code> or more ").
I understand that in case of VARCHAR type we cannot speak about real number of decimal digits - but could just driver return 0 
instead of -1?
    Please advise.

    Thanks in advance for answer.

---
WBR, Sergii Sinelnychenko
Senior Java Developer, Project Manager
e: SSinelnychenko@bossdev.com
w: www.bossdev.com 




view thread (5+ messages)  latest in thread

Message-ID: <032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua>
Permalink:  ../032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua/
Also on:    postgresql.org/message-id/032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua

 · 

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: SSinelnychenko@bossdev.com
  Subject: Re: ResultSetMetaData + CachedResultSet bug
  In-Reply-To: <032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua>
  References: <032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua>

* 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