mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-06-16 01:15:05 +08:00
fix: sql query bis
This commit is contained in:
@@ -516,7 +516,7 @@ pub fn find_latest_inscription_transfer_data(
|
||||
) -> Result<Option<(TransactionIdentifier, usize, u64)>, String> {
|
||||
let args: &[&dyn ToSql] = &[&inscription_id.to_sql().unwrap()];
|
||||
let mut stmt = inscriptions_db_conn
|
||||
.prepare("SELECT offset, outpoint_to_watch FROM locations WHERE inscription_id = ? ORDER BY block_height DESC, tx_index DESC LIMIT 1")
|
||||
.prepare("SELECT outpoint_to_watch, offset FROM locations WHERE inscription_id = ? ORDER BY block_height DESC, tx_index DESC LIMIT 1")
|
||||
.unwrap();
|
||||
let mut rows = stmt.query(args).unwrap();
|
||||
while let Ok(Some(row)) = rows.next() {
|
||||
|
||||
Reference in New Issue
Block a user