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: connection_string_parser.py #3522

Commits on Aug 26, 2024

  1. fix: connection_string_parser.py

    In version 1.0.14, a connection string that includes a port, like the following example, works without any issues:
    `test_connection_string = 'postgresql://postgres:password!!@pgdatabase.hosts:5432'`
    
    However, in version 1.0.15, using this connection string causes an error.
    "Error building Component PGVector: invalid literal for int() with base 10"
    
    This is because 5432, which is the result of parsing the password_url, is being used as the last element in the password_url list.
    tkdguq05 authored and ogabrielluiz committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    54904d7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae921f3 View commit details
    Browse the repository at this point in the history
  3. Update connection_string_parser.py

    fix 
    transformed_connection_string = f'{protocol_user}:{encoded_password}@{db_url_name}'
    tkdguq05 authored and ogabrielluiz committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4aa8cf3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    61eb59b View commit details
    Browse the repository at this point in the history