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 -> Re: How to handle ora - 01405 in PRO*C.

Re: How to handle ora - 01405 in PRO*C.

From: GHouck <hksys_at_teleport.com>
Date: Tue, 02 Feb 1999 04:15:30 -0800
Message-ID: <36B6EC62.2EE9@teleport.com>


Johnny chopra wrote:
>
> Does someone knows how to handle ORA - 01405 IN PRO*C

This is from the ORA.HLP file:

ORA-01405 ORA-01405 fetched column value is NULL

Cause: The INTO clause of a FETCH operation contained a NULL value, and no indicator was used. The column buffer in the program remained unchanged, and the cursor return code was +2. This is an error unless you are running Oracle7 with DBMS=6, emulating version 6, in which case it is only a warning.
Action: You may do any of the following:

·_Use the NVL function to convert the retrieved NULL to another value, such as zero or blank. This is the simplest solution. ·_Use an indicator to record the presence of the NULL. You probably should use this option when you want a specific action to be taken when a NULL arises.
·_Revise the cursor definition so that no columns possibly containing NULL values are retrieved.

Copyright (C) 1995, Oracle Corporation

Yours
Geoff Houck
systems hk
hksys_at_teleport.com
http://www.teleport.com/~hksys Received on Tue Feb 02 1999 - 06:15:30 CST

Original text of this message

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