| From: | "milimeter(at)163(dot)com" <milimeter(at)163(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | jdbc problem |
| Date: | 2003-04-24 02:20:54 |
| Message-ID: | 200304241020.54649."milimeter@163.com" |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Barry Lind | 2003-04-24 02:50:15 | Re: jdbc problem |
| Previous Message | David Wall | 2003-04-23 22:35:19 | Re: PG 7.3.2 JDBC timestamp problems between JDK 1.3.1 and 1.4.1 |