Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: JDBC types ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 1950 of 2010
Post > Topic >>

Re: JDBC types vs postgres types correspondation

by books@[EMAIL PROTECTED] (Kris Jurka) May 12, 2008 at 03:05 AM

On Sat, 10 May 2008, Marco Solinas wrote:

> We have a problem with the JDBC types. We need to find out the
> correspondation table between jdbc types and postgresql type.
> What we're trying to do is to build a CREATE TABLE query where a column
has
> to be of type "character varying", but we're not able to find the
> corresponding JDBC type.

You are getting hit by a bug in the JDBC driver.  The output of 
DatabaseMetaData.getTypeInfo is supposed to be sorted by closest match to 
DATA_TYPE, but it is not.  So you're just getting a random match for a 
datatype that can represent text.

Kris Jurka

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 2 Posts in Topic:
JDBC types vs postgres types correspondation
solinas.marco@[EMAIL PROT  2008-05-10 19:14:13 
Re: JDBC types vs postgres types correspondation
books@[EMAIL PROTECTED]   2008-05-12 03:05:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 20 8:26:56 CDT 2008.