Skip to content

Commit

Permalink
fixed capitalization in query
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Feb 26, 2025
1 parent cc2b4e3 commit 4f0b507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stacks-signer/src/signerdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ impl SignerDb {
&self,
tenure: &ConsensusHash,
) -> Result<u64, DBError> {
let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) as block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) AS block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
let args = params![tenure, &BlockState::GloballyAccepted.to_string()];
let block_count_opt: Option<u64> = query_row(&self.db, query, args)?;
match block_count_opt {
Expand Down

0 comments on commit 4f0b507

Please sign in to comment.