Lines 1445-1452
sub _set_message_status {
Link Here
|
1445 |
my $dbh = C4::Context->dbh(); |
1445 |
my $dbh = C4::Context->dbh(); |
1446 |
my $statement = 'UPDATE message_queue SET status= ? WHERE message_id = ?'; |
1446 |
my $statement = 'UPDATE message_queue SET status= ? WHERE message_id = ?'; |
1447 |
my $sth = $dbh->prepare( $statement ); |
1447 |
my $sth = $dbh->prepare( $statement ); |
1448 |
my $result = $sth->execute( $params->{'status'}, |
1448 |
|
1449 |
$params->{'message_id'} ); |
1449 |
$dbh->do('LOCK TABLES message_queue WRITE'); |
|
|
1450 |
my $result = $sth->execute( $params->{'status'}, $params->{'message_id'} ); |
1451 |
$dbh->do('UNLOCK TABLES'); |
1452 |
|
1450 |
return $result; |
1453 |
return $result; |
1451 |
} |
1454 |
} |
1452 |
|
1455 |
|
1453 |
- |
|
|