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

Navigate Association fails on MySQL 8 with 'columns differ from referenced constraint' #4768

Closed
DaPoco1986 opened this issue Dec 10, 2018 · 5 comments
Labels

Comments

@DaPoco1986
Copy link

DaPoco1986 commented Dec 10, 2018

I use DBeaver Version 5.2.1
Mysql 8 under Manjaro Linux
I have 3 schemas containing the same database structure. When I want to use the 'navigate association' feature within a resultset I get following error:
Entity [xxx.branch] association [FK_TpResource_IsBranch] columns differs from referenced constraint [PRIMARY] (3<>1)

When I use a database having only one schema, it works.
I assume the resolver queries the database schema without filtering on the schema itself. So in my case, 3 TableReferences are found for the navigating column and DBeaver does not know which to chose.

@DaPoco1986 DaPoco1986 changed the title Navigate Association fails on MySQL for 'columns differ fom referenced constraint' Navigate Association fails on MySQL with 'columns differ from referenced constraint' Dec 10, 2018
@DaPoco1986 DaPoco1986 changed the title Navigate Association fails on MySQL with 'columns differ from referenced constraint' Navigate Association fails on MySQL 8 with 'columns differ from referenced constraint' Dec 10, 2018
@serge-rider
Copy link
Member

I can't reproduce that. In fact DBeaver uses schema to search reference tables/keys.
I can't figure out how this coudl be possible (looks more like a corrupted schema).
Could you try to this on the latest DBeaver version?

@DaPoco1986
Copy link
Author

So, I upgraded to the current version, but the error still exists.
Nevertheless I was able to narrow it down. I switched back to an older JDBC Driver (Version 5.1.47) and here it works! The Version I used before was 8.0.11, so I guess there is something wrong with that.

@serge-rider
Copy link
Member

Ah, this is possible. DBeaver MySQL extension uses native JDBC driver functions to read foreign keys info. So this might be a bug in MySQL driver itself..

@DaPoco1986
Copy link
Author

DaPoco1986 commented Dec 11, 2018

That is what I'm thinking. Thanks for your help, this issue can be closed

@Dimas-sc
Copy link

Same happens with MariaDB. Any solutions?

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

No branches or pull requests

3 participants