Overriding DBI->connect() for DBD::DB2

2004-08-05 Thread Hildo . Biersma
All, We're trying to override the DBI->connect() method for DBD::DB2 to support longer database names. Some background: - DB2 supports only 8-character database names and aliases - We plan to have hundreds to thousands of them, so we end up with non-intelligeble names. - We have a mapping file

Re: Overriding DBI->connect() for DBD::DB2

2004-08-05 Thread Darren Duncan
At 9:42 AM -0400 8/5/04, [EMAIL PROTECTED] wrote: We're trying to override the DBI->connect() method for DBD::DB2 to support longer database names. Some background: - DB2 supports only 8-character database names and aliases - We plan to have hundreds to thousands of them, so we end up with non-in

Re: Overriding DBI->connect() for DBD::DB2

2004-08-05 Thread Tim Bunce
On Thu, Aug 05, 2004 at 09:42:01AM -0400, [EMAIL PROTECTED] wrote: > All, Hi Hildo. > We're trying to override the DBI->connect() method for DBD::DB2 to > support longer database names. > > Some background: > - DB2 supports only 8-character database names and aliases > - We plan to have hundreds

Re: Overriding DBI->connect() for DBD::DB2

2004-08-05 Thread Darren Duncan
At 3:07 AM +0100 8/6/04, Tim Bunce wrote: But I imagine you've considered those and you want the driver approach so you can implement it with no application code changes. Maybe this is just me being nit-picky, but unless the name of the driver to call, as passed to connect(), is in an external fil

Re: Overriding DBI->connect() for DBD::DB2

2004-08-05 Thread Jochen Wiedmann
[EMAIL PROTECTED] wrote: Hence we wrote DBD::MSDB2, which basically sub-classes DBD::DB2: This is, IMO, the right approach. However, doing this is not as easy as you might think. I once wrote a guide, see the section "SUBCLASSING DBI DRIVERS" in "perldoc DBI::DBD". Jochen