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

How can you set sql_mode in the connection? #45

Closed
tshakah opened this issue Jun 5, 2020 · 2 comments
Closed

How can you set sql_mode in the connection? #45

tshakah opened this issue Jun 5, 2020 · 2 comments

Comments

@tshakah
Copy link

tshakah commented Jun 5, 2020

I've tried setting my connection string to jdbc:mysql://localhost/thedatabase?user=theuser&sessionVariables=sql_mode='' (and various other iterations) but it doesn't work (I'm working on a legacy system with bad SQL) - is there a way I can set the SQL mode in the connection string?

@kristijanhusak
Copy link
Owner

Try without jdbc:. This package supports what vim-dadbod supports, so check the docs there to see if that's possible.

@tshakah
Copy link
Author

tshakah commented Jun 6, 2020

Thanks for the quick response! I'll go look there

@tshakah tshakah closed this as completed Jun 6, 2020
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

2 participants