Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PL/SQL Parse bug in Code Outline window?

Graeme DouglasMar 18 2022

(SQL Developer Version 21.4.3.063 / Microsoft Windows [Version 10.0.19042.1586])
I think this a bug in the parsing for the Code Outline window, something I use all the time for navigating within large package files.
Details: The Code Outline window parse tree reports 'Syntax error; partial parse tree' when using WHERE CURRENT OF with a cursor in another package. e.g. where current of pkg1.c1
Note that WHERE CURRENT OF <cursor> is fine, it seems to be <package>.cursor that causes the problem.
Screenshot below, showing that SQL Developer incorrectly thinks this is an error. Sample code to reproduce attached.
code-outline-error.pngSQLDEV-bug-where-current-of-package-cursor.txt (1.08 KB)This sample code compiles and runs with no problem:
Table TEST_TAB dropped.
Table TEST_TAB created.
1 row inserted.
Commit complete.
Package PKG1 compiled
Package PKG2 compiled
Package Body PKG2 compiled
PL/SQL procedure successfully completed.
TEST_KEY TEST_VAL
---------- --------------------
AA x
I would be grateful for any insight into this problem, thanks.

This post has been answered by Vadim Tropashko-Oracle on Mar 18 2022
Jump to Answer

Comments

6363
Ramesh_R wrote:
Hi all,
I have a secenario like to check the old values and new values of a record inside a trigger
like :new.col_name = :old.col_name. The scenario is i need to dynamically iterate thro' all
the column values. because the number of columns is large and keeps on changing in future too.
Can't do that.

Simply add your trigger code to the same source repository as you table creation scripts, and when the table is updated, update and deploy the trigger too.
1 - 1

Post Details

Added on Mar 18 2022
1 comment
271 views