Re: jdbc problem

From: Barry Lind <blind(at)xythos(dot)com>
To: milimeter(at)163(dot)com
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: jdbc problem
Date: 2003-04-24 02:50:15
Message-ID: 3EA750E7.5040503@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Mili,

I don't understand your issues. Can you explain them in a bit more
detail? Perhaps with code examples?

thanks,
--Barry

milimeter(at)163(dot)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
>

In response to

  • jdbc problem at 2003-04-24 02:20:54 from milimeter@163.com

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message milimeter@163.com 2003-04-24 03:06:30 Re: jdbc problem
Previous Message milimeter@163.com 2003-04-24 02:20:54 jdbc problem