question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SELECT statement shouldn't increase uncommitted transactions count

See original GitHub issue
  • Version: 4.0.4
  • Platform: Ubuntu 16.04
  • SQL: MS SQL Server 2012
  • Connection Settings:
    • Auto-commit: false
    • Isolation level: Read committed

When I execute the following SELECT statement:

select * from alarmruleconditions where alarmruleid = 13035

The Commit and Rollback buttons are enabled, and transaction count textbox changes to green with a number “1”.

When hover on this textbox, I will get a popup:

1 total statements
1 modifying statements
1 seconds uptime

I think this is not correct, it is only a SELECT statement, not modifying anything. I remembered this not happens in 4.0.1 ~ 4.0.3.

selection_023

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:23 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
MiqueiasVieiracommented, Mar 12, 2020

This issue is back in 7.0 version

6reactions
ap-pauloafonsocommented, Mar 2, 2020

It seems that this issue is back in 7.0 version

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Select UNCOMMITTED rows only in SQL Server?
Maybe you can do this: SELECT * FROM T WITH (SNAPSHOT) EXCEPT SELECT * FROM T WITH (READCOMMITTED, READPAST). But this is inherently...
Read more >
Understand and resolve SQL Server blocking problems
This report shows current transactions at the head of a blocking chain. If you expand the transaction, the report will show the transactions...
Read more >
Understanding the Impact of NOLOCK and WITH ... - SQLShack
The default behaviour in SQL Server is for every query to acquire its own shared lock prior to reading data from a given...
Read more >
"But NOLOCK Is Okay When My Data Isn't Changing, Right ...
If you don't want to interfere with the write transaction, yes, but that is the absolute best way to get dirty data, or...
Read more >
Understanding the SQL Server NOLOCK hint - MSSQLTips.com
This can improve query performance by removing the blocks, ... The NOLOCK and READUNCOMMITTED lock hints are not allowed for target tables ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found