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: handle Undefined values in driver URL options #6925

Merged
merged 2 commits into from
Oct 17, 2020

Conversation

imnotjames
Copy link
Contributor

@imnotjames imnotjames commented Oct 17, 2020

When Driver URLs are passed without a database or with other options missing this change will prevent them from overriding explicitly defined values with their undefined values.

fixes #6900

the `buildDriverOptions` parses the URL & will have undefined values
which it ends up overwriting non-undefined values with - which isn't great
@imnotjames imnotjames changed the title Better handling of Undefined values in drive URL options fix: Better handling of Undefined values in drive URL options Oct 17, 2020
@imnotjames imnotjames changed the title fix: Better handling of Undefined values in drive URL options fix: Better handling of Undefined values in driver URL options Oct 17, 2020
@imnotjames imnotjames changed the title fix: Better handling of Undefined values in driver URL options fix: handle Undefined values in driver URL options Oct 17, 2020
@imnotjames imnotjames marked this pull request as ready for review October 17, 2020 07:58
@imnotjames imnotjames merged commit 6fa2df5 into typeorm:master Oct 17, 2020
@imnotjames imnotjames deleted the test/6900 branch October 17, 2020 16:19
@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 19, 2020
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
the `buildDriverOptions` parses the URL & will have undefined values
which it ends up overwriting non-undefined values with - which isn't great
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted label hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MongoDB ConnectionManager doesn't select given database, creates new database "test" instead
1 participant