-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Oct 16, 2001 at 07:37:40PM -0700, Terrence Brannon wrote:
> Stephen, can you give some insight into how normal usage of this DBI 
> subclass might lead to infinite loops via DBI callbacks? I find it 
> surprising that subclasses have to setup this sort of defense for 
> themselves against their parents calling them.

Feel free to ignore that little bit of hackery -- it was strictly a Laziness 
thing on our part :)

It exists solely because we override prepare with a call to prepare_cached -- we 
found this hack infinitely better than perusing 400,000 lines of our application 
code to change prepare to prepare_cached.  prepare_cached calls prepare to 
actually create the sth, so in our case prepare needs to do the Right Thing 
when called from within itself.

- -- 
Stephen Clouse <[EMAIL PROTECTED]>
Senior Programmer, IQ Coordinator Project Lead
The IQ Group, Inc. <http://www.theiqgroup.com/>

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQA/AwUBO8zzCQOGqGs0PadnEQJgwQCfRXKV6I48cSujV7Gu6SH53tv+OLMAn3SA
S0KekpVzn3NyMc7gphg0vTga
=nJN3
-----END PGP SIGNATURE-----

Reply via email to