Skip Menu |

This queue is for tickets about the Class-DBI CPAN distribution.

Report information
The Basics
Id: 84148
Status: new
Priority: 0/
Queue: Class-DBI

People
Owner: Nobody in particular
Requestors: PHILIPP [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: v3.0.17
Fixed in: (no value)



Subject: set_db() and connection() don't support 'host' and 'port' attributes for remote databases
If remote DSN's are supported, it's undocumented and not evident how to make this work. I've tried searching the source for support of 'host' and 'port' attributes but they aren't present. I've tried invoking: __PACKAGE__->set_db('Main', 'dbi:mysql:mydatabase;host=192.168.1.8;port=3306', 'user', 'password'); but this doesn't seem to be supported either. Since it's the DBD that handles remote connections, all of the work (for Class::DBI) just involves passing the host and port parameters through, doesn't it?
Also, in investigating this issue, it became apparently that tracing calls into lower-level DBI and DBD methods for the specific database drivers would have been immensely helpful.