Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollback and commit button gets activated for sometime on getting any error for SQL query or cancelling the query. #7248

Closed
anilsahoo20 opened this issue Feb 28, 2024 · 3 comments
Assignees
Milestone

Comments

@anilsahoo20
Copy link
Contributor

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

If we run some query and the some error occurs or if we cancel the query in between, the rollback and commit button gets activated for some seconds.

To Reproduce

Steps to reproduce the behavior:

  1. Open query tool
  2. Run any wrong query
  3. See the rollback and commit button gets activated for some seconds

Expected behavior

These buttons should not get activated.

Screenshot 2024-02-28 at 9 22 41 PM

Desktop (please complete the following information):

  • OS: [e.g. Windows 10, OSX monterey]
  • Version: [e.g. 6.15]
  • Mode: [e.g Desktop or Server]
  • Browser (if running in server mode): [e.g. chrome, safari]
  • Package type: [e.g. RPM, DEB, Python, Container, etc.]

Additional context

Add any other context about the problem here.

@JyotiEdb
Copy link
Contributor

@anilsahoo20
All working fine,
But when we run wrong query and auto-commit is off, we get error, and after clicking commit button its shows massage of rollback, is it expected behaviour?

@anilsahoo20
Copy link
Contributor Author

@JyotiEdb,
yes it is correct behaviour. Because there is nothing to commit as the error comes in. so the commit and rollback button will rollback always.

@JyotiEdb
Copy link
Contributor

Tested and verified on snapshot build:
https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/2024-03-28/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants