pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: aaabdallah@gmail.com
To: pgsql-jdbc@postgresql.org
Subject: Re: Inserting "null" not working (Sun App Server, Postgres, EJB3)?
Date: 2 Mar 2007 00:22:44 -0800
Message-ID: <1172823764.106772.94010@v33g2000cwv.googlegroups.com> (raw)
In-Reply-To: <630396DA-4BD3-48B2-8504-78F555BAC5FF@redhat.com>
References: <40939ed60703010604j149caad2n92dccac2ae6f6824@mail.gmail.com>
	<3AC75FD4-F9DC-4B9E-AA60-38F67EFD39B0@redhat.com>
	<0DC8A2E6-BB3C-4592-BF9E-7EECA0CCE37B@fastcrypt.com>
	<23779.1172793964@sss.pgh.pa.us>
	<A3D1BE07-7266-4DCF-859A-69C67E44B3EF@fastcrypt.com>
	<26671.1172794578@sss.pgh.pa.us>
	<C7866AAD-CAC8-4CFA-B97C-C46E9B76E2B9@fastcrypt.com>
	<9412284C-E14A-4A9E-97C6-F2680457E08F@fastcrypt.com>
	<630396DA-4BD3-48B2-8504-78F555BAC5FF@redhat.com>

Wait, Heiko, I hope you get this message before you spend your time on
this!

First of all, I confirmed what Dave said: the Oracle Toplink package
was indeed sending every single NULL with an SQL type of VARCHAR. I
downloaded the postgresql JDBC source code and slowly traced what was
going on, and put in the necessary printlns to see what was being
sent. Garbage in, garbage out.

The good news: the latest version of the Toplink package solves it: it
correctly switches the type of the NULL based on the real type of the
field.

I thank you very much for attempting to help me, and I hope your
problem also gets solved similarly thru an upgrade. It is frustrating
building off of buggy software, but on the other hand, these are
enormously useful packages that people are putting out for free, so I
can't complain. Just gotta try and get some uninterrupted sleep now...

-A




view thread (14+ messages)  latest in thread

Message-ID: <1172823764.106772.94010@v33g2000cwv.googlegroups.com>
Permalink:  ../1172823764.106772.94010@v33g2000cwv.googlegroups.com/
Also on:    postgresql.org/message-id/1172823764.106772.94010@v33g2000cwv.googlegroups.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: aaabdallah@gmail.com
  Subject: Re: Inserting "null" not working (Sun App Server, Postgres, EJB3)?
  In-Reply-To: <1172823764.106772.94010@v33g2000cwv.googlegroups.com>
  References: <40939ed60703010604j149caad2n92dccac2ae6f6824@mail.gmail.com> <3AC75FD4-F9DC-4B9E-AA60-38F67EFD39B0@redhat.com> <0DC8A2E6-BB3C-4592-BF9E-7EECA0CCE37B@fastcrypt.com> <23779.1172793964@sss.pgh.pa.us> <A3D1BE07-7266-4DCF-859A-69C67E44B3EF@fastcrypt.com> <26671.1172794578@sss.pgh.pa.us> <C7866AAD-CAC8-4CFA-B97C-C46E9B76E2B9@fastcrypt.com> <9412284C-E14A-4A9E-97C6-F2680457E08F@fastcrypt.com> <630396DA-4BD3-48B2-8504-78F555BAC5FF@redhat.com> <1172823764.106772.94010@v33g2000cwv.googlegroups.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