CaptTofu/DBD-mysql — Issue #20: Database name consists a colon (':')
Author: Perlover
Created: 2012-01-12 22:07:40+00:00
State: open

Hello!

I have a problem
The server MySQL allows to me use big list of symbols for database name - i should only use it in `` quotes
For example i use a database name as 'domain.com:81' for example (domain + port of site)
I didn't have a problems but if i use tht DBD::mysql i should use a database name in dsn string and there ':' letter is defined as host (may be because DBI allows describe a database in dsn as "database@host:port"). I could make it outside a database in \%attr parameter but i cannot - i should describe database name in dsn

How can i escape a letter ':' in dsn string?
Can the DBD::mysql have a escape method for specific database names?

Thanks