Re: adding key to DB object

From: Brandon Metcalf (bmetcalf_at_nortel.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 14:35:42 -0600 (CST)
To: David Goodman <dtzgdman@yahoo.com>

d == dtzgdman@yahoo.com writes:

 d> Why do you see using private attributes like
 d> $dbh->{private_commitflag} as preferable to embedding
 d> a dbh in your own object?

I suppose I could do that. Why would you use the latter method?

-- 
Brandon


Relevant Pages

  • RE: Questions about connectivity
    ... > I have a related question, if I've stored some private_ data in the $dbh ... I wanted to use an ErrorHandler subroutine which reads the private_ data. ... But if the error occurs through an $sth I get a DBI::st rather than the ... to control the creation code of the $dbh not any subsequent $sth's). ...
    (perl.dbi.users)
  • Re: private and protected inheritance
    ... >functionally equivalent to embedding an instance of the base class as a ... >private inheritance. ... I still think there's some validity to that, but the overriding ... afoul of any virtual functions the base class has; ...
    (microsoft.public.vc.language)