$SQL = "SELECT * FROM $S.$T";
$sth = $sourcedbh->prepare($SQL);
$sth->execute();
- $g->{sequenceinfo}{$sourcename} =$sth->fetchall_arrayref({})->[0];
+ $g->{sequenceinfo}{$sourcename} = $sth->fetchall_arrayref({})->[0];
$g->{winning_db} = $sourcename;
## We want to modify all fullcopy targets only
$sth = $sth{checktable};
$count = $sth->execute(qq{"$g->{schemaname}"."$g->{tablename}"});
if ($count != 1) {
+ $sth->finish();
my $msg = qq{Could not find $g->{reltype} "$g->{schemaname}"."$g->{tablename}"\n};
$self->glog($msg, LOG_WARN);
warn $msg;
AND sync = ?
};
$sth = $ldbh->prepare($SQL);
- $count = $sth->execute($syncname);
+ $sth->execute($syncname);
## End the current row, and elevate it to a 'last' position
$SQL = qq{
WHERE ctid = ?
};
$sth = $ldbh->prepare($SQL);
- $count = $sth->execute($status, $ctid);
+ $sth->execute($status, $ctid);
return;