fixed trivial errors
This commit is contained in:
parent
b2eb491d08
commit
055cc98b3a
|
@ -16,13 +16,13 @@ my $ca = Simba::CA->new({
|
|||
|
||||
my $dbh = $ca->{dbh};
|
||||
|
||||
for my $session (@ARGV[0]) {
|
||||
for my $session (@ARGV) {
|
||||
print "deleting session $session\n";
|
||||
my $n_instances = $dbh->do("delete from instances where session=?", {}, $session);
|
||||
print "\t$n_instances instances deleted\n";
|
||||
|
||||
# remove orphaned records:
|
||||
$sessions
|
||||
my $sessions
|
||||
= $dbh->selectcol_arrayref(
|
||||
q{select s.id from instances i right outer join sessions s on i.session=s.id where i.id is null}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue