Error: ORA-00900: invalid SQL statement AutoSelect statement Comment
Code (Used to be longer but I deleted everything that didn't make the error disappear):
/*
*/
SELECT 1 FROM dual;
--
SELECT 1 FROM dual;
I have the cursor in the 2nd SQL statement and use F8 to execute it.
I have the option "AutoSelect statement" checked and it looks like it selects more than just the SQL statement but also the comment before but not entirely (just one of the dashes).
See in the picture:
The thing is - it happens only sometimes - more than once per day. I reopen the file and keep working with it like nothing happened - no errors.
I just switched from 11.0.6.1776 to 12.0.3.1821. On 11 it happened not very often - once per week. But on 12 it is too often to tolerate.