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 58F199DC86A for ; Mon, 16 Jan 2006 12:39:49 -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 87949-01 for ; Mon, 16 Jan 2006 12:39:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id A8EB19DC807 for ; Mon, 16 Jan 2006 12:39:41 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id D4316778CD; Mon, 16 Jan 2006 17:41:01 +0100 (CET) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19587-19; Mon, 16 Jan 2006 17:41:00 +0100 (CET) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 2D803778CB; Mon, 16 Jan 2006 17:41:00 +0100 (CET) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id C70003A710; Mon, 16 Jan 2006 17:39:37 +0100 (CET) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id B804E3A6D6; Mon, 16 Jan 2006 17:39:37 +0100 (CET) Received: from [172.17.1.87] ([172.17.1.87]) by enterprise.mosaic-ag.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Mon, 16 Jan 2006 17:37:18 +0100 Message-ID: <43CBCC40.4070002@mosaic-ag.com> Date: Mon, 16 Jan 2006 17:39:28 +0100 From: Roland Walter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.5) Gecko/20041217 X-Accept-Language: de-DE,de,en MIME-Version: 1.0 To: "Gilbert, Antoine" Cc: pgsql-jdbc@postgresql.org Subject: Re: jdbc problem References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------060004050207000000030802" X-OriginalArrivalTime: 16 Jan 2006 16:37:19.0000 (UTC) FILETIME=[1DEE4980:01C61ABB] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.119, HTML_MESSAGE=0.001] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200601/69 X-Sequence-Number: 14520 This is a multi-part message in MIME format. --------------060004050207000000030802 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Gilbert, Antoine schrieb: > 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? > > > This is correct if the type of Province_name is char(xx) and the column width xx is longer than the value. -- Roland Walter mailto: rwa (at) mosaic-ag (dot) com MOSAIC SOFTWARE AG phone: +49 (0) 22 25 / 88 2-41 1 Am Pannacker 3 fax: +49 (0) 22 25 / 88 2-20 1 D-53340 Meckenheim http://www.mosaic-ag.com Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail. This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail. --------------060004050207000000030802 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Gilbert, Antoine schrieb:

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?

 

This is correct if  the type of Province_name is char(xx) and the column width xx is longer than the value.

-- 
Roland Walter                   mailto: rwa (at) mosaic-ag (dot) com
MOSAIC SOFTWARE AG               phone: +49 (0) 22 25 / 88 2-41 1
Am Pannacker 3                     fax: +49 (0) 22 25 / 88 2-20 1
D-53340 Meckenheim                http://www.mosaic-ag.com


Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail.

This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail.


--------------060004050207000000030802--