PLS-00801 Raised While Executing a Package Having SIMPLE_INTEGER Data Type Declared with CONSTANT Keyword
(Doc ID 2440829.1)
Last updated on FEBRUARY 19, 2019
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124.0 and later
Information in this document applies to any platform.
An unexpected 'PLS-00801' error is raised while compiling a package body that declares a CONSTANT variable with simple_integer data type and the same is used in an arithmetic expression. The error is observed only when the variable participates in an arithmetic expression involving another simple_integer data type. The error is not seen if binary_integer or pls_integer is used instead of simple_integer or simple_integer is used with binary_integer or pls_integer in the arithmetic expression.
For example, the following code can be used to reproduce the issue.
The code works fine up to RDBMS version 126.96.36.199. It starts failing from 18c base version(188.8.131.52.0)
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document