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

[DBeaver] setSchema not supported #25

Open
randyzwitch opened this issue Feb 20, 2020 · 5 comments
Open

[DBeaver] setSchema not supported #25

randyzwitch opened this issue Feb 20, 2020 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@randyzwitch
Copy link

When opening the SQL Editor, DBeaver throws the following error:

Not supported yet, line:776 class:com.omnisci.jdbc.OmniSciConnection method:setSchema

image

@randyzwitch randyzwitch added bug Something isn't working enhancement New feature or request labels Feb 20, 2020
@julioasotodv
Copy link

julioasotodv commented Mar 17, 2020

Indeed, it looks like the jdbc method setSchema is not supported.

However, there is a workaround that can be configured in DBeaver:

If you go to the "Edit connection" menu, and then into "Edit Driver Settings", and then into the "Advanced Parameters" tab, scroll until you see an option called "Omit Schemas". If you check that checkbox, save changes and reconnect, queries from the SQL editor should work for now on. This way, DBeaver will stop trying to launch a setSchema method.

@randyzwitch
Copy link
Author

Thanks @julioasotodv, I should probably submit a PR to DBeaver to enable that by default

@randyzwitch
Copy link
Author

I can confirm this workaround solves the issue, thanks @julioasotodv. We're discussing this internally on what the proper fix might be, including possibly just submitting this to the DBeaver repo

image

@cdessanti
Copy link

cdessanti commented Mar 23, 2020 via email

@mlazatinph
Copy link

mlazatinph commented Jul 10, 2020

As per javadocs https://docs.oracle.com/javase/8/docs/api/java/sql/Connection.html#setSchema-java.lang.String-

If the driver does not support schemas, it will silently ignore this request.

So maybe don't throw an exception when setSchema is called.

The getSchema method says:

Returns:
the current schema name or null if there is none

So maybe just return null instead of throwing an exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants