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: ORA-06502: PL/SQL: numeric or value error? Not to sure whats wrong.

Re: ORA-06502: PL/SQL: numeric or value error? Not to sure whats wrong.

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 08 Aug 2005 22:55:59 +0200
Message-ID: <oihff19b9vhea5gm5q9ke3sougullll719@4ax.com>


On 8 Aug 2005 13:13:19 -0700, jimi_xyz_at_hotmail.com wrote:

>The thing is when i take this statement
>sql_final := 'SELECT DISTINCT projectid, jobordernumber, score(1)'
>and remove jobordernumber it works fine but when i add any more
>columns to the select clause i get this error..
>
> ORA-06502: PL/SQL: numeric or value error

You should post the *complete* package (you can't expect anyone is keeping your previous posts) and you should post the complete error stack.
Your ora-6502 can occur anywhere.

There is a flaw in your code that will result in ora-6502 when the location_array is empty. Your ELSE clause is hit for both location_array.count = 1 and location_array.count = 0;

--
Sybrand Bakker, Senior Oracle DBA
Received on Mon Aug 08 2005 - 15:55:59 CDT

Original text of this message

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