[ic] perl db question, problems when modifying admin

Mike Heins interchange-users@interchange.redhat.com
Mon Feb 18 16:38:00 2002


Quoting Doug Alcorn (lathi@seapine.com):
> 
> Mike Heins <mheins@redhat.com> writes:
> 
> > Again, the DBI object should be OK in later versions of IC. In 4.6.x
> > you will run into problems.
> 
> Your example is well received.  I will probably convert over to using
> it.  However, the previous error message I posted in this thread about
> fetchrow_hashref() is from IC 4.8.3 installed from the debian/woody
> package.

I wasn't aware of this. Apparently, that particular DBI driver does
a "require" for a module after the object is created. If that is the
case, there is no way for it ever to work with Safe.

Using "require" to check for method existence is a piss-poor way to
write software, IMHO. All it takes is someone dropping a new file in
your library path and you have a security hole. But some do it.

I have not seen this with MySQL, but then again I rarely/never use
DBI directly within Safe.

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Any man who is under 30, and is not liberal, has not heart; and any man
who is over 30, and is not a conservative, has not brains.
 -- Winston Churchill