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 -> Selects in SQLJ

Selects in SQLJ

From: Heber Ferraz-Leite <h.ferraz-leite_at_fsc.at>
Date: Tue, 23 Oct 2001 17:01:45 +0200
Message-ID: <3bd58661$0$9460$6e365a64@newsreader02.highway.telekom.at>


Hallo,

When compiling an SQLJ file that contains a select I find the following problem:

> Planning:50: Warning: Die Spalte int #1 kann nicht auf Null gesetzt
werden,
> selbst wenn sie in der select-Liste NULL sein kann. Dies kann zu einem
> Laufzeitfehler führen.
> #sql {SELECT SPlanning.nextval INTO :planningNumber FROM Dual};

Sorry, this is german, but what it means is:

Warning: The column #1 cannot be set to Null, even though it may be Null in the select list. This could cause a runtime error. The line below is the SQL code that produces the mistake.

I am aware that it can be null (not in this case, but generally speaking). I would expect an exception in that case, and the statement is within a try..catch block.

What am I doing wrong ?

Thanks in advance,

Heber Received on Tue Oct 23 2001 - 10:01:45 CDT

Original text of this message

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