Re: adding key to DB object
From: Brandon Metcalf (bmetcalf_at_nortel.com)
Date: 03/29/05
- Next message: Felix Geerinckx: "Re: cacheing problem"
- Previous message: Jeff Zucker: "Re: adding key to DB object"
- In reply to: Jeff Zucker: "Re: adding key to DB object"
- Next in thread: Tim Bunce: "Re: adding key to DB object"
- Reply: Tim Bunce: "Re: adding key to DB object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Felix Geerinckx: "Re: cacheing problem"
- Previous message: Jeff Zucker: "Re: adding key to DB object"
- In reply to: Jeff Zucker: "Re: adding key to DB object"
- Next in thread: Tim Bunce: "Re: adding key to DB object"
- Reply: Tim Bunce: "Re: adding key to DB object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|