Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Temp table loss due to sudden session change #2996
After upgrading to 1.1 a few days ago I noticed that temp. tables "vanished" suddenly from my scripts.
Steps to Reproduce:
I think the session change also happened without errors after just time has passed - but not 100% sure about that. I can reproduce it easily with above steps.
This is not happening within a procedure and there are no TRANSACTION statements - SELECT @@TRANCOUNT is 0.
I just made a test with version 0.31.4 on Win10 - everything ok.
I'm fairly sure that this bug appeared in either Version 1.0 or 1.1.3. I hardly used 1.0, but used all the 0.x versions a lot.
@oappelt I think this is related to change we made to reconnect a query editor when a connection exception is thrown. Users were reporting issues of dropped sessions and this was an attempt to try to "hide" connectivity problems from the user. I'll see if we can better scope the reconnect logic to SocketExceptions, or else remove that logic and ask the user to manually reconnect if necessary.