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: quote host parameter for HeidiSQL and prevent argument double quoting #5084

Merged
merged 1 commit into from
Jul 6, 2023
Merged

fix: quote host parameter for HeidiSQL and prevent argument double quoting #5084

merged 1 commit into from
Jul 6, 2023

Conversation

andreashager
Copy link
Contributor

The Issue

When launching HeidiSQL via ddev heidisql there is an additional double quote at the end of each database connection name. If you remove the double quotes from the arguments the host parameter must be written in double quotes as the documentation suggests it (Docu: https://www.heidisql.com/help.php#commandline).

How This PR Solves The Issue

This PR removes the double quotes at the end of the string and adds them to the host parameter.

Manual Testing Instructions

Runddev heidisql to start HeidiSQL from WSL2 with correct name.

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

@rfay
Copy link
Member

rfay commented Jul 5, 2023

Thanks for the contribution!

We would have reopened this for you, you didn't have to delete it, just needed the title adjusted :)

From the other PR:

Last I tested this it worked OK. What is the symptom that you encountered?

@andreashager
Copy link
Contributor Author

andreashager commented Jul 5, 2023

OK didn't know that 🙂

The command itself worked fine but in the connection manager of HeidiSQL shows an additional double quote at the end (have a look at the screenshot). And this happens because of the quotation of $arguments than HeidiSQL adds the last double quote to the database description name.

Connection-Manager

Additionally I found at that the host parameter need to be embedded in double quotes according to documentation of HeidiSQL. So I also add them to the command 🙂

Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

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

Seems fine to me, thanks!

@andreashager
Copy link
Contributor Author

Cool thanks 🥳😎

Copy link
Member

@gilbertsoft gilbertsoft left a comment

Choose a reason for hiding this comment

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

Thanks! Works here on traditional Windows and WSL 2

@rfay rfay merged commit 796c2e7 into ddev:master Jul 6, 2023
32 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants