On Fri, 2 Jun 2000, Perrin Harkins wrote:
> On Sat, 3 Jun 2000, Stas Bekman wrote:
> > * install_driver (2):
> > DBI->install_driver("mysql");
>
> I've never seen that before,
There is always a first time :)
> and it isn't in the DBI perldoc.
Where do you think I've found it :) It is mentioned in DBI manpage:
DBI->connect automatically installs the driver if it
has not been installed yet. Driver installation always
returns a valid driver handle or it dies with an error
message which includes the string 'install_driver' and
the underlying problem. So, DBI->connect will die on a
driver installation failure and will only return undef
on a connect failure, for which $DBI::errstr will hold
the error.
but actualy it's the DBD:: method. No matter what, you get more shared
memory with it, see the updated table:
Version Size Shared Diff Test type
--------------------------------------------------------------------
1 3469312 2609152 860160 install_driver
2 3481600 2605056 876544 install_driver & connect_on_init
3 3469312 2576384 892928 load driver
4 3477504 2482176 995328 nothing added
5 3481600 2469888 1011712 connect_on_init
> Is it safer than "use DBD::mysql;"?
"safer" is the wrong question. It's always used by DBI, but when you call
it at the server startup you get a few more K shared, compared with only
preloading of DBD::mysql.
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://perl.org http://stason.org/TULARC
http://singlesheaven.com http://perlmonth.com http://sourcegarden.org