allow SQL statements to be added to test cleanup

This commit is contained in:
Graham Knop 2010-04-12 17:55:42 -05:00
parent eb97a8d50e
commit 88e8fe77fb
2 changed files with 6 additions and 1 deletions

View file

@ -819,6 +819,10 @@ Example call:
my ($class, $ident) = @_;
return WebGUI::Storage->get($CLASS->session, $ident);
},
'SQL' => sub {
my (undef, $sql) = @_;
return $CLASS->session->db->dbh->prepare($sql);
},
);
my %clone = (
@ -898,6 +902,7 @@ Example call:
'CODE' => sub {
(shift)->();
},
'SQL' => 'execute',
);
sub cleanupGuard {