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!

Semicolon location causing error

QuickyApr 16 2025 — edited Apr 16 2025

I'm new to Oracle so apologies if this is simply user error, but there's a difference in the way SQL Developer for VS Code handles the below when compared to SQL Developer Classic.

If a simple query has the terminating semicolon on the next line after the script, and the cursor is after the semicolon, hitting Ctrl+Enter to run the statement in VS Code results in “An error occurred while running the statement”.

E.g. with this query with the cursor at the end of line 4:

Hit Ctrl+Enter:

In SQL Developer Classic, under the exact same circumstances, the query runs without a problem.

In VS Code if the cursor was placed at the end of line 3 before hitting Ctrl-Enter, the query will run. Why does it fail if the cursor is at the end of line 4? Shouldn't it run the query that precedes the semicolon, like it does in SQL Developer Classic?

This is on version 25.1.0.

This post has been answered by thatJeffSmith-Oracle on Apr 16 2025
Jump to Answer
Comments
Post Details
Added on Apr 16 2025
1 comment
186 views