jdbc problem - Mailing list pgsql-jdbc

From Gilbert, Antoine
Subject jdbc problem
Date
Msg-id DF58692A2DBF5440910BFE80B73D73E101596E8D@sqexc02.korem.local
Whole thread Raw
Responses Re: jdbc problem
List pgsql-jdbc

Hi

 

I’am fetching records via the PostgreSQL JDBC driver.

 

I have a strange problem. The string values always have some blank characters (or tab?) at the end.

 

So if I have in the database ‘British Columbia’, it become in my java program with rs.getString() something like ‘British Columbia    ’.

 

The select I’m using is basic : select Province_name from myTable

 

When I try this query in the PostgreSQL admin console, I don’t have this problem.

 

Any idea?

 

pgsql-jdbc by date:

Previous
From: "Minal A. Aryamane"
Date:
Subject: Re: [ODBC] Stored Procedures
Next
From: Roland Walter
Date:
Subject: Re: jdbc problem