Skip site navigation (1) Skip section navigation (2)

JDBC driver returning the numeric dataype size as -1

From: "Rajat Katyal" <rajatk(at)intelesoftech(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: JDBC driver returning the numeric dataype size as -1
Date: 2004-04-01 13:19:55
Message-ID: 000801c417ec$0646a3f0$2105a8c0@coffee (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc

We are using postgres 7.3 as database and pg73jdbc3 as a jdbc driver.

After extraction of metadata of the database tables and fields, the size of the numeric data types we are getting as -1. However we have defined the size as numeric(8, 0). For all other datatypes it is retrieving the exact size as specified in the database. 

Can any body know why this behavior with jdbc driver?

Please suggest the solution as soon as possible.

Thanks and Regards,

pgsql-jdbc by date

Next:From: Marcus Andree S. MagalhaesDate: 2004-04-01 20:27:22
Subject: disabling seq scans
Previous:From: Hans-Jürgen SchönigDate: 2004-04-01 09:52:53
Subject: Re: very interesting JDBC problem ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group