X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 190B59DC852 for ; Mon, 16 Jan 2006 12:23:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83419-02 for ; Mon, 16 Jan 2006 12:23:13 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 508D99DC807 for ; Mon, 16 Jan 2006 12:23:12 -0400 (AST) Received: from sqexc02.korem.com (email.korem.com [206.162.180.58]) by svr4.postgresql.org (Postfix) with ESMTP id 759625AF024 for ; Mon, 16 Jan 2006 16:23:11 +0000 (GMT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C61AB8.F93471CA" Subject: jdbc problem Date: Mon, 16 Jan 2006 11:21:58 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: jdbc problem Thread-Index: AcYauPj+pBaGLIpCSVefjSUjrRn2QA== From: "Gilbert, Antoine" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[HTML_MESSAGE=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200601/68 X-Sequence-Number: 14519 This is a multi-part message in MIME format. ------_=_NextPart_001_01C61AB8.F93471CA Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi =20 I'am fetching records via the PostgreSQL JDBC driver. =20 I have a strange problem. The string values always have some blank characters (or tab?) at the end. =20 So if I have in the database 'British Columbia', it become in my java program with rs.getString() something like 'British Columbia '. =20 The select I'm using is basic : select Province_name from myTable =20 When I try this query in the PostgreSQL admin console, I don't have this problem. =20 Any idea? =20 ------_=_NextPart_001_01C61AB8.F93471CA Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

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?

 

------_=_NextPart_001_01C61AB8.F93471CA--