Skip to content

Silently ignores "; host=$hostname" #331

Open
@drboone

Description

Not sure if this is a DBI or DBD::mysql issue.

A DSN like "dbi:mysql:$database; host=$hostname" will silently ignore the host= clause and connect to localhost. This is bad juju: one could end up making changes to the wrong database. It's also a serious violation of "principle of least astonishment. The DSN should either be accepted and used fully, or rejected fully, not selectively ignored.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions