Skip to content

Conversation

@scottnemes
Copy link
Contributor

Description

Currently on reconnect the database connection loses the previously selected database (if applicable), however mycli still thinks the database is selected. This PR addresses the issue by telling the new connection what database to select after a reconnect, which brings the connection and mycli back in sync.

Fixes #1437

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

@scottnemes scottnemes marked this pull request as draft January 13, 2026 02:45
@scottnemes scottnemes marked this pull request as ready for review January 13, 2026 04:54
@scottnemes
Copy link
Contributor Author

@rolandwalker This one should be good now. The test reliably reproduces the issue so will help with any future changes as well.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Database is not set after a reconnect

1 participant