Re: crystal reports varchar = string length 0 in jdbc but

From: Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: crystal reports varchar = string length 0 in jdbc but
Date: 2004-02-13 04:48:02
Message-ID: 402C57023AC.66EFKG@129.180.47.120
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 12 Feb 2004 22:15:12 -0500 (EST), Kris Jurka <books(at)ejurka(dot)com> wrote:
[snip]
>
> See DatabaseMetaData.getColumns
>
[snip]
>
> All the code you've showed us does is create a connection, open a result
> set and print it. You also note that this code works. The
> interesting code would be: the table definitions, the sql query, and
> the actual printing code used. Depending on how crystal reports works
> these may not be easy things to get to, but you'll have to give us
> something more to work with.

That's why I wanted to know if anyone had a class to write out the meta
data. Anyway I wrote my own and it turns out to be precision. The
jdbc-odbc bridge returns the width of text fields in the precision
property (resultSet.getMetaData().getPrecision(n)) were the postgresql
jdbc driver returns 0.

Also the date field returns the displaywidth in precision in the bridge
but postgresql jdbc driver returns 0. crystal recognizes the date and
deals with them properly though.

klint.

+---------------------------------------+-----------------+
: Klint Gore : "Non rhyming :
: EMail : kg(at)kgb(dot)une(dot)edu(dot)au : slang - the :
: Snail : A.B.R.I. : possibilities :
: Mail University of New England : are useless" :
: Armidale NSW 2351 Australia : L.J.J. :
: Fax : +61 2 6772 5376 : :
+---------------------------------------+-----------------+

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-02-13 08:36:24 Re: crystal reports varchar = string length 0 in jdbc but
Previous Message Kris Jurka 2004-02-13 03:15:12 Re: crystal reports varchar = string length 0 in jdbc but