Skip to content

Poor feedback on invalid DSN #186

Closed
Closed
@xaprb

Description

@xaprb

This error confused me badly:

$ ./myprog --dsn='user:pass@tcp(10.154.146.190:3306)'
2013/12/05 22:37:43 Error 1045: Access denied for user ''@'127.0.0.1' (using password: NO)

The issue is that the DSN is missing a trailing slash. Can the driver reject that during sql.Open() and give better feedback to the user?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions