pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Barry Lind <blind@xythos.com>
To: milimeter@163.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc problem
Date: Wed, 23 Apr 2003 19:50:15 -0700
Message-ID: <3EA750E7.5040503@xythos.com> (raw)
In-Reply-To: <200304241020.54649."milimeter@163.com">
References: <200304241020.54649."milimeter@163.com">

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
> 




view thread (12+ messages)  latest in thread

Message-ID: <3EA750E7.5040503@xythos.com>
Permalink:  ../3EA750E7.5040503@xythos.com/
Also on:    postgresql.org/message-id/3EA750E7.5040503@xythos.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: blind@xythos.com, milimeter@163.com
  Subject: Re: jdbc problem
  In-Reply-To: <3EA750E7.5040503@xythos.com>
  References: <200304241020.54649."milimeter@163.com"> <3EA750E7.5040503@xythos.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox