Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Null integers in Oracle and Java
Hi,
you can test if the data is null with the wasNull() Method of the ResultSet Object:
while (rset.next()) {
int i = rset.getInt(1); if rset.wasNull() { doTheErrorHandling }
-Timo
--
+---+---+-+-+-+-+
| | |-+-+-+-+ Fraunhofer-Institut fuer Graphische Datenverarbeitung
| __ _ | Dipl.Ing. (BA) Timo Biesenbach | ! ! _ ! \ | Rundeturmstr. 6 phone ++49 6151 155 578 | ! !__! !_/ | 64283 Darmstadt fax ++49 6151 155 299 +---------------+ Germany email timo.biesenbach_at_igd.fhg.deReceived on Wed Feb 23 2000 - 02:04:50 CST