Skip to content

Commit 4f0b507

Browse files
committed
fixed capitalization in query
1 parent cc2b4e3 commit 4f0b507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stacks-signer/src/signerdb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ impl SignerDb {
858858
&self,
859859
tenure: &ConsensusHash,
860860
) -> Result<u64, DBError> {
861-
let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) as block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
861+
let query = "SELECT COALESCE((MAX(stacks_height) - MIN(stacks_height) + 1), 0) AS block_count FROM blocks WHERE consensus_hash = ?1 AND state = ?2";
862862
let args = params![tenure, &BlockState::GloballyAccepted.to_string()];
863863
let block_count_opt: Option<u64> = query_row(&self.db, query, args)?;
864864
match block_count_opt {

0 commit comments

Comments
 (0)