Menu

#15 dumps on reserved word DETERMINISTIC

0.8.1
closed-fixed
None
5
2003-11-30
2003-03-27
Anonymous
No

I have a function in my package spec that has the
reserved word DETERMINISTIC. DETERMINISTIC is a valid
part of a function declaration. PLDoc dumps on this.

net.sourceforge.pldoc.parser.ParseException:
Encountered "DETERMINISTIC" at line
66, column 41.
Was expecting one of:
"AS" ...
"IS" ...
";" ...
"(" ...

at
net.sourceforge.pldoc.parser.PLSQLParser.generateParseException(PLSQL
Parser.java:9471)
at
net.sourceforge.pldoc.parser.PLSQLParser.jj_consume_token(PLSQLParser
.java:9334)
at
net.sourceforge.pldoc.parser.PLSQLParser.programUnit(PLSQLParser.java
:2627)
at
net.sourceforge.pldoc.parser.PLSQLParser.declarativeSection(PLSQLPars
er.java:1825)
at
net.sourceforge.pldoc.parser.PLSQLParser.packageSpec(PLSQLParser.java
:1119)
at
net.sourceforge.pldoc.parser.PLSQLParser.input(PLSQLParser.java:951)
at net.sourceforge.pldoc.PLDoc.main(PLDoc.java:241)

Discussion

  • Albert Tumanov

    Albert Tumanov - 2003-03-28

    Logged In: YES
    user_id=86901

    Can you please provide an example (or minimal test case) of
    the package spec ?

     
  • Albert Tumanov

    Albert Tumanov - 2003-03-28
    • assigned_to: nobody --> altumano
     
  • Charles Lemmon

    Charles Lemmon - 2003-03-28

    Logged In: YES
    user_id=744010

    Here is an example spec that will compile under 9i PL/SQL

    CREATE OR REPLACE PACKAGE test_deterministic IS

    --
    FUNCTION test_determ(p_dummy IN VARCHAR2)
    RETURN VARCHAR2 DETERMINISTIC;

    END test_deterministic;
    /

     
  • Nobody/Anonymous

    Logged In: NO

    I am getting a similar error when I use a TYPE definition in
    the package spec.
    eg:

    CREATE OR REPLACE PACKAGE pkg_array
    IS
    TYPE arr_num IS ARRAY (5000) OF NUMBER;
    TYPE arr_vc2 IS ARRAY (5000) OF VARCHAR2(300);
    END pkg_array;
    /

     
  • Albert Tumanov

    Albert Tumanov - 2003-10-20

    Logged In: YES
    user_id=86901

    Same about PARALLEL_ENABLE.

    Test cases:

    create package hints as
    FUNCTION F1 (P1 NUMBER) RETURN NUMBER DETERMINISTIC;
    FUNCTION F2 (P1 NUMBER) RETURN NUMBER PARALLEL_ENABLE;
    end;
    /

     
  • Albert Tumanov

    Albert Tumanov - 2003-10-20
    • status: open --> closed-fixed
     
  • Albert Tumanov

    Albert Tumanov - 2003-10-20

    Logged In: YES
    user_id=86901

    fixed in CVS

     
  • Albert Tumanov

    Albert Tumanov - 2003-10-20
    • milestone: --> 305105
     
  • Albert Tumanov

    Albert Tumanov - 2003-11-30
    • milestone: 305105 --> 0.8.1
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.