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

[BUG] MySQL helpers are wrong with duplicate table names in different schemas #163

Open
isseii10 opened this issue Dec 22, 2024 · 1 comment

Comments

@isseii10
Copy link

isseii10 commented Dec 22, 2024

Hi.
I found a bug when tables with the same name exist in different schemas.

Reproduction Example:

CREATE DATABASE db1;
CREATE DATABASE db2;

CREATE TABLE db1.users (
  id int,
  name varchar(255)
);

CREATE TABLE db2.users (
  id int,
  name varchar(255)
);

INSERT INTO db1.users VALUES (1, "db1user");
INSERT INTO db2.users VALUES (1, "db2user");

ALTER TABLE db1.users ADD INDEX idx_name_db1 (name);
ALTER TABLE db2.users ADD INDEX idx_name_db2 (name);

When connected to db1, selecting 'List', 'Columns', or 'Indexes' for db2.users shows the result for db1.users instead.

@isseii10
Copy link
Author

I have identified the cause of the bug and created a PR.
I would appreciate it if you could take a look!

#164

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

No branches or pull requests

1 participant