Skip to content

ParseDSN incorrectly parses ':' in username as password separator #1747

Description

@hongxuaaaaa

The ParseDSN interface does not support parsing ':' in the username. This causes the part after the ':' in the username to be mistakenly identified as the password. How can I avoid this issue, and are there any plans to optimize the ParseDSN interface?

Activity

  1. methane commented on Apr 28, 2026

    @methane
    Member

    How can I avoid this issue,

    Use NewConfig() instead of DSN.

    are there any plans to optimize the ParseDSN interface?

    Its difficult. It requires breaking backward compatibility.

  2. added a commit that references this issue on May 10, 2026
    4825420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions