DBD-mysql
DBD-mysql copied to clipboard
Silently ignores "; host=$hostname"
trafficstars
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.
So the issue here is the space in front of host?
Seems to be.