Martyn J. Pearce skrev: > On Fri, Dec 03, 2004 at 11:25:53AM +0000, Tim Bunce wrote: ... >> The simplest fix is to standardize one set of driver DSN attribute >> names so that at least the host, port, and database (schema) can >> be specified in a portable way. > > Is that really the simplest? It occurs that the responses on this > thread, and in my experience, many people are comfortable & familiar > with the use of a hash (/ref) for this purpose.
Maybe the number of responses on this thread come from people who have this itch to scratch. I have heard Tim Bunce (DBI, DBD::Oracle etc) and Jonathan Leffler (DBD::Informix) raise 'Beware, thing are much more complex than you think' warnings. I (DBD::Ingres) have'nt pitched in as Jonathan voiced my concerns quite precisely, saying: Beware - DBMS are more different than anyone would like. That's why DBI has the scheme it does have - it is flexible but not easily codified. Ingres, like Informix and (I think) Oracle, does'nt have the concept of 'host' or 'port', using other ways of adressing remote databases. It seems to me that you are trying to force an extension onto the DBI based on what a small number of RDBMSs accept. The people who want this seem to use only a few DBDs - perhaps it could be added to those? -- Henrik Tougaard, maintainer of DBD::Ingres
