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

Home -> Community -> Usenet -> c.d.o.misc -> Re: JDBC Driver setObject() converts empty string to NULL

Re: JDBC Driver setObject() converts empty string to NULL

From: Vladimir M. Zakharychev <vladimir.zakharychev_at_gmail.com>
Date: 30 May 2006 11:10:23 -0700
Message-ID: <1149012623.118436.151650@38g2000cwa.googlegroups.com>


Hmm... Not exactly clear what the problem is, but I'll try: in Oracle, empty strings *are* NULLs. This is known and documented behavior. setString() or setObject() probably convert empty strings to NULLs because they are the same thing in Oracle. You need to code for this behavior as it can't be turned off.

Corrections and additions welcome.

Hth,

    Vladimir M. Zakharychev
    N-Networks, makers of Dynamic PSP(tm)     http://www.dynamicpsp.com Received on Tue May 30 2006 - 13:10:23 CDT

Original text of this message

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