This is the problem with empty line between the queries.We have IDE-20442 JIRA opened for this issue.
IDE-20442 - SQL Editor contents lost if selected text contains empty line
Many thanks for that info. Although these are annoying issues rather than problems, is there a planned date for fixes to those to be released?
Thanks. I tried remove empty lines and still got the same problem. Quite frustrating. Let's hope this will be fixed in the next update.
I am using 16.10.1 - 64 bit - full studio version and have seen the same issue. I have lost work due to this horrendous bug. In my case, the entire script is deleted not just what I executed. It also happens when using the green play button, not just F5. It's difficult to reproduce. It must be some unique sequence of events. Depends on how heavely you are using the ediitor but can happen a few times per week under daily use. Will definately upgrade to 16.20.
I also suggest that you upgrade to at least 16.20.02. Early 16.20.xx versions always scrolled the sql editor window back to the top - very annoying if you have a lot of code in the window.