Ron Savage schreef: > Dr.Ruud: >> [attribution repaired] Ron Savage:
>>> Nope. Method db_vendor() extracts the vendor's name from the >>> connect string passed to DBI, so I don't see how it could return >>> that :-))). >> >> Is it legal to pass 'MySQL'? How about ' mysql '? > > Sigh. DBI -> parse_dsn() does not accept something like 'dbi: mysql > :test'. > > And anyway, I control the config file this data comes from, so spaces > won't appear there... OK, so your "/(?:mysql|Pg)/" should have been more like "/:(?:mysql|pg):/i". You posted code that others might use (parts of). It is just good to have comments on it mentioned in the same thread, so that people who hit on it later, can profit from that. > This thread is now closed. Is it that hard? -- Affijn, Ruud "Gewoon is een tijger."