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: External script containing empty lines in SQL statement fails with error

luboss1812 hours ago

Hi,

We often execute external scripts like “@C:\path\to\script.sql”. If there are empty lines in middle of SQL statement, the script fails. Same script runs fine in original SQL developer.

As an example if I call script containing:

select 'abc', 

'def' from dual;

In VS code I get:

SQL> @C:\path\test.sql
SQL> select 'abc', 
SQL> 'def' from dual;

Error starting at line : 3 File @ C:\path\test.sql
In command -
'def' from dual
Error report -
Unknown Command

In original SQL developer it runs fine:

SQL> @C:\path\test.sql
SQL> select 'abc', 
  2  
  3  'def' from dual;

'ABC'    'DEF'    
abc      def      

1 row selected. 

This is silly example, but we have lots of scripts where complex SQL statements contain empty lines for better readability.

Comments
Post Details
Added 12 hours ago
1 comment
27 views