mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Improve sql query
This commit is contained in:
parent
e78146eb67
commit
ed4b1e8f02
1 changed files with 2 additions and 3 deletions
|
@ -891,13 +891,12 @@ public class RecipientStore implements RecipientIdCreator, RecipientResolver, Re
|
|||
final var sql = (
|
||||
"""
|
||||
UPDATE %s
|
||||
SET unregistered_timestamp = ?
|
||||
SET unregistered_timestamp = NULL
|
||||
WHERE _id = ?
|
||||
"""
|
||||
).formatted(TABLE_RECIPIENT);
|
||||
try (final var statement = connection.prepareStatement(sql)) {
|
||||
statement.setNull(1, Types.INTEGER);
|
||||
statement.setLong(2, recipientId.id());
|
||||
statement.setLong(1, recipientId.id());
|
||||
statement.executeUpdate();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue