Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Am I crazy or what?

Am I crazy or what?

From: <gaby_at_ieee.org>
Date: 13 May 2005 14:32:20 -0700
Message-ID: <1116019940.418746.155600@g44g2000cwa.googlegroups.com>


Hi,

I'm using the ojdbc14.zip JDBC driver againts an oracle 10g database.

I'm getting one crazy result from a select.

select ...,nvl(attr,'') as attr, ...
from .... where ...

The attr attribute is a varchar2(150) that allow nulls.

I do resultSet.getString("attr") and it returns me NULL for that attribute!!

Is there *any* condition under which the nvl function doesn't return null?

*What* is what I'm doing wrong, for the love of God?

TIA,
Gabriel Received on Fri May 13 2005 - 16:32:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US