Skip to content
New issue

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

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

Already on GitHub? # to your account

improves postgres compatibility + more granular feedback config #798

Merged
merged 25 commits into from
Aug 14, 2023

Conversation

edublancas
Copy link

@edublancas edublancas commented Aug 14, 2023

Describe your changes

  • [Fix] Perform ROLLBACK when SQLAlchemy raises PendingRollbackError
  • [Fix] Perform ROLLBACK when psycopg2 raises current transaction is aborted, commands ignored until end of transaction block
  • [Fix] Perform ROLLBACK when psycopg2 raises server closed the connection unexpectedly (closes connection closed when using postgres #677)
  • [Fix] Shorter displaylimit footer
  • [API Change] %config SqlMagic.feedback now takes values 0 (disabled), 1 (normal), 2 (verbose)
  • [Fix] ResultSet footer only displayed when feedback=2
  • [Fix] Current connection and switching connections message only displayed when feedback>=1
  • [Fix] --persist/--persist-replace perform ROLLBACK automatically when needed

Checklist before requesting a review


📚 Documentation preview 📚: https://jupysql--798.org.readthedocs.build/en/798/

@edublancas edublancas changed the title Dev/postgres improves postgres compatibility Aug 14, 2023
@edublancas edublancas changed the title improves postgres compatibility improves postgres compatibility + more granular feedback config Aug 14, 2023
@edublancas edublancas marked this pull request as ready for review August 14, 2023 04:53
@edublancas edublancas requested a review from neelasha23 as a code owner August 14, 2023 04:53
@neelasha23
Copy link

Added minor comments. Looks good otherwise

@edublancas edublancas requested a review from neelasha23 August 14, 2023 14:41
@edublancas edublancas merged commit ab891e1 into master Aug 14, 2023
@edublancas edublancas deleted the dev/postgres branch August 14, 2023 16:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

connection closed when using postgres
2 participants