X-Original-To: pgsql-jdbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6054D4758F1 for ; Wed, 23 Apr 2003 22:50:12 -0400 (EDT) Received: from mail.xythos.com (unknown [206.14.210.116]) by postgresql.org (Postfix) with ESMTP id C278B474E42 for ; Wed, 23 Apr 2003 22:50:11 -0400 (EDT) Received: from ravms by mail.xythos.com with mail-ok (Exim 3.36 #3) id 198WoS-0006I5-00; Thu, 24 Apr 2003 02:50:16 +0000 Received: from localhost.localdomain ([127.0.0.1] helo=xythos.com) by mail.xythos.com with asmtp (Exim 3.36 #3) id 198WoS-0006Hu-00; Thu, 24 Apr 2003 02:50:16 +0000 Message-ID: <3EA750E7.5040503@xythos.com> Date: Wed, 23 Apr 2003 19:50:15 -0700 From: Barry Lind User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: milimeter@163.com Cc: pgsql-jdbc@postgresql.org Subject: Re: jdbc problem References: <200304241020.54649."milimeter@163.com"> In-Reply-To: <200304241020.54649."milimeter@163.com"> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Envelope-To: milimeter@163.com, pgsql-jdbc@postgresql.org X-Spam-Status: No, hits=-32.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/214 X-Sequence-Number: 7053 Mili, I don't understand your issues. Can you explain them in a bit more detail? Perhaps with code examples? thanks, --Barry milimeter@163.com wrote: > Hi, all > > I have a table: CREATE TABLE person (age char(4)) > After executing "select age from person" with jdbc, I extract the value > with: > getInt("age") > Now is the problem, the same code can succeed on oracle, but on > postgresql, because of not triming space automaticlly, it cause an error. > > So, I hope the newest jdbc driver for postgresql can automaticlly trim > space just like oracle. The same problem also exists when execute insert: > Provided "age" is an integer, then "insert into person values ('30')" can > be executed correctly, but "insert into person values ('')" can not. On > oracle, a default value will be added. So jdbc driver for postgresql should > also do it. > > Yours, > mili > > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster >