Re: adding key to DB object

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


Date: Tue, 29 Mar 2005 12:20:09 -0600 (CST)
To: Jeff Zucker <jeff@vpservices.com>

j == jeff@vpservices.com writes:

 j> No, that's wrong. It may look like a hash, but when you set or query
 j> attributes, you are actually calling the STORE() and FETCH() methods of
 j> the DBD and of DBI. You can only set attributes that can be handled by
 j> the DBD and by DBI, you can't invent new attributes.

Ah, got it. Basically, what I'm trying to do is track whether I've
encountered any errors during a transaction within the object itself,
so I can do something like:

  eval { $dbh->execute; };
  $dbh->{commitflag} = 0 if $@;

Is there some existing attribute that will do what I need?

Thanks.

-- 
Brandon


Relevant Pages

  • Re: adding key to DB object
    ... you are actually calling the STORE() and FETCHmethods of ... > j> the DBD and by DBI, ...
    (perl.dbi.users)
  • Re: adding key to DB object
    ... It may look like a hash, but when you set or query ... T>> j> the DBD and by DBI, ...
    (perl.dbi.users)
  • RE: How to perform JOINs with DBI
    ... How to perform JOINs with DBI ... What does the query do in SQL*Plus? ... intended recipient, please be aware that any disclosure, copying, distribution ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)
  • Re: Order by statement stopped working but not in all cases
    ... If what you say is true and none of you SW (Perl, DBI, DBD, Oracle) has ... by statement in the query, it again returned results though not sorted. ... The apps have not been changed in the past week. ...
    (perl.dbi.users)
  • RE: binding multiple values and retain blanks
    ... Join this table to the main table in your query. ... When i do like above, trailing spaces are lost, as DBI treats default ... So i have to bind one value at a time and specify type as CHAR in order ...
    (perl.dbi.users)