🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14610

Null became 0?

#14610
From: HooLee
Date: Thu, 19 Aug 1999 00:00
15 lines
953 bytes
Hi
My name is Hoo.
I got the data from Oracle DB by getBigDecimal() method.
When the value in DB is null, I don't want to output anything into
TextField.
But always output 0.  How does null become 0?
I even tested as follows..

dataquerySet.setBigDecimal("cost",null);
if (dataquerySet.getBigDecimal("cost") == null )
  System.out.println("null");

But the process doesn't go inside of if block.
Please tell me what's worng.
Thank you.
Technical Details
Message-ID: <7pfmnr$31019@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e4bbec8c981b1648,start
X-Google-Attributes: gidf74b3,public
From: "HooLee" <hoolee@kico.co.jp>
Subject: Null became 0?
Date: 1999/08/19
Message-ID: <7pfmnr$31019@forums.borland.com>
X-Deja-AN: 514502038
Content-Transfer-Encoding: 7bit
Organization: kico
Content-Type: text/plain; charset="iso-2022-jp"
Mime-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language