Skip to content

Commit

Permalink
Merge pull request #707 from EspressoSystems/jb/limit-query
Browse files Browse the repository at this point in the history
Add LIMIT 1 to query
  • Loading branch information
jbearer authored Oct 9, 2024
2 parents 36bb46f + 3dbe09e commit 619baeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data_source/storage/sql/query/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ impl<'a> Transaction<'a> {
&format!(
"SELECT {header_state_commitment_field} AS root_commmitment
FROM header
WHERE height = $1"
WHERE height = $1
LIMIT 1"
),
[sql_param(&created)],
)
Expand Down

0 comments on commit 619baeb

Please sign in to comment.