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

Render a proper connection string without username or password #445

Merged
merged 2 commits into from
Mar 24, 2024

Conversation

robacarp
Copy link
Contributor

@robacarp robacarp commented Feb 19, 2024

Allows Adapter::Base#connection_string to render a connection string such as postgres://localhost/db_name

previously, when given no username or password, it would render postgres://@localhost/db_name, which is an invalid connection string.

Any background context you want to provide?

Re my issues getting started at #444 -- the first thing I tried to do was to connect to my local database without a username or password.

I ran into this with posgresql, but I did not have a local mysql installation available for testing.

Release notes

Config
[BUGFIX] Now connection strings can be rendered without username or password.

allows Adapter::Base#connection_string to render a connection string such as postgres://localhost/db_name

previously, when given no username or password, it would render postgres://@localhost/db_name, which is invalid.
@imdrasil imdrasil self-requested a review February 20, 2024 11:49
@imdrasil
Copy link
Owner

@robacarp please address mysql related issue and we will be able to merge this PR

@imdrasil
Copy link
Owner

@robacarp it looks like failed tests aren't connected with your changes. I'll take a look on this weekend

@wJoenn
Copy link

wJoenn commented Mar 2, 2024

@imdrasil Have you had time to look into what is blocking the CI ? 🤔

@imdrasil
Copy link
Owner

I was just an issue with the latest mysql version - my JSON patch to mysql driver causes very strange bug with 8.0.36. Please merge in master branch and this issue should disappear

@robacarp
Copy link
Contributor Author

all set

@imdrasil imdrasil merged commit 7978418 into imdrasil:master Mar 24, 2024
29 checks passed
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

Successfully merging this pull request may close these issues.

3 participants