[CDBI] before and after update values in before_update trigger

Sorin Milutinovici <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Organization ContentLogic
Message-ID <[email protected]>
Hi everyone,

I'm not using Class::DBI for long so this may be a simple question:

Is it possible to obtain in a before_update trigger both values of an updated 
field - the value before the fileld was updated and the value that will be 
assigned to that field after update?

If the answer is yes, how can I do that? 

Now, $self->{field} gives me the value _after_ update, even in before_update 
trigger.

If the answer is no - can (and should) be implemented somehow?

Thank you,

Sorin Milutinovici

-- 
Semper in excrementul sole profundum qui variat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.