Bug 14570: (follow-up) fix table name in j2a.pl

Signed-off-by: Agustin Moyano <agustinmoyano@theke.io>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Agustin Moyano 2019-05-17 21:10:02 -03:00 committed by Martin Renvoize
parent 109334102f
commit c8ff1e4701
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 4 deletions

View File

@ -187,8 +187,8 @@ if ( not $noaction ) {
$schema->storage->txn_begin;
my $query = qq|
DELETE relationships FROM relationships
LEFT JOIN borrowers ON ( borrowers.borrowernumber = relationships.guarantee_id )
DELETE borrower_relationships FROM borrower_relationships
LEFT JOIN borrowers ON ( borrowers.borrowernumber = borrower_relationships.guarantee_id )
$where
|;
my $sth = $dbh->prepare($query);
@ -232,8 +232,8 @@ if ( not $noaction ) {
|;
my $query = qq|
DELETE relationships FROM relationships
LEFT JOIN borrowers ON ( borrowers.borrowernumber = relationships.guarantee_id )
DELETE borrower_relationships FROM borrower_relationships
LEFT JOIN borrowers ON ( borrowers.borrowernumber = borrower_relationships.guarantee_id )
$where
|;
my $sth = $dbh->prepare($query);