Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
Make inner join explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Apr 30, 2024
1 parent a516f4f commit 27c08ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/atxs/atxs.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func PrevATXCollisions(db sql.Executor) ([]PrevATXCollision, error) {
if _, err := db.Exec(`
SELECT t1.pubkey, t2.pubkey, t1.id, t2.id
FROM atxs t1
JOIN atxs t2 ON t1.prev_id = t2.prev_id
INNER JOIN atxs t2 ON t1.prev_id = t2.prev_id
WHERE t1.id < t2.id;`, nil, dec); err != nil {
return nil, fmt.Errorf("error getting ATXs with same prevATX: %w", err)
}
Expand Down

0 comments on commit 27c08ed

Please sign in to comment.