Skip to Main Content

SQL Developer for VS Code

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!

Bug: Syntax error when using DROP ROLE IF EXISTS

Philipp Salvisberg14 hours ago

The next script can be saved, e.g., as “test.sql,” and successfully executed via SQLcl or SQL*Plus connected as a DBA user. It also works via “Run Statement” and “Run Script” in VS Code. However, it produces a syntax error in the VS Code extension 25.3.0, which is shown in the PROBLEMS tab.

drop role if exists demo_role;

Here's the screenshot showing the complete error message:

It looks like the Parser in the VS Code extension does not understand the DROP ROLE IF EXISTS syntax.

Comments
Post Details
Added 14 hours ago
0 comments
20 views