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: the database url is missing ":\\" when sqlite or postgresql is not used #5492

Merged
merged 6 commits into from
Jan 10, 2025

Conversation

qq745639151
Copy link
Contributor

If I set the environment varialbe LANGFLOW_DATABASE_URL start with "mysql+aiomysql://", the function _create_engine split it to judge the database will be used. But if sqlite or postgresql is not used. the url is missing "://"

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Dec 31, 2024
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Dec 31, 2024
Copy link

codspeed-hq bot commented Dec 31, 2024

CodSpeed Performance Report

Merging #5492 will not alter performance

Comparing qq745639151:main (3562c5e) with main (9c23759)

Summary

✅ 15 untouched benchmarks

@ogabrielluiz ogabrielluiz requested a review from Copilot January 2, 2025 12:38
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

Hey @qq745639151

Good catch. Please take a look at my comment.

@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 10, 2025
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jan 10, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 10, 2025
@github-actions github-actions bot added bug Something isn't working and removed bug Something isn't working labels Jan 10, 2025
Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

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

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 10, 2025
@ogabrielluiz ogabrielluiz added this pull request to the merge queue Jan 10, 2025
Merged via the queue into langflow-ai:main with commit 33a7922 Jan 10, 2025
43 of 45 checks passed
ogabrielluiz pushed a commit to raphaelchristi/langflow that referenced this pull request Jan 10, 2025
…ot used (langflow-ai#5492)

* 【bugfix】 the database url is missing ":\\"

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [fix] improve the code to make it easier to understand

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
mieslep pushed a commit to mieslep/langflow that referenced this pull request Jan 15, 2025
…ot used (langflow-ai#5492)

* 【bugfix】 the database url is missing ":\\"

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes

* [fix] improve the code to make it easier to understand

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants