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

fix: fix duplicate 'mysql' database issue #284

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

fanyang01
Copy link
Contributor

@fanyang01 fanyang01 commented Dec 13, 2024

Fixes #283

Exclude the 'mysql' database from the AllDatabases method in catalog/provider.go.

  • Add a condition to filter out the 'mysql' database in the switch statement.

By GitHub Copilot Workspace


For more details, open the Copilot Workspace session.

fanyang01 and others added 3 commits December 13, 2024 15:00
Fixes #283

Exclude the 'mysql' database from the `AllDatabases` method in `catalog/provider.go`.

* Add a condition to filter out the 'mysql' database in the switch statement.

By GitHub Copilot Workspace

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/apecloud/myduckserver/issues/283?shareId=XXXX-XXXX-XXXX-XXXX).
… BATS test to ensure unique databases

* **catalog/provider.go**
  - Add a condition to filter out the 'mysql' database in the `AllDatabases` method

* **test/bats/mysql/unique_databases.bats**
  - Add a BATS test to ensure every database reported by `SHOW DATABASES` is unique
  - Replace `${MYSQL}` with `mysql -h 127.0.0.1 -u root`
@fanyang01 fanyang01 requested a review from Copilot December 13, 2024 10:45

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • test/bats/mysql/unique_databases.bats: Language not supported
@fanyang01 fanyang01 merged commit 68f29ab into main Dec 13, 2024
11 checks passed
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] There're two 'mysql' databases
1 participant