From 217b411753a00c3d65847a97096616ec91e4b3d2 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 27 Aug 2021 12:26:30 -0700 Subject: [PATCH] Fix placeholders. --- state/indexer/sink/psql/psql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/indexer/sink/psql/psql.go b/state/indexer/sink/psql/psql.go index 5a270eb92..5c5d42ddd 100644 --- a/state/indexer/sink/psql/psql.go +++ b/state/indexer/sink/psql/psql.go @@ -178,7 +178,7 @@ SELECT rowid FROM `+tableBlocks+` WHERE height = $1 AND chain_id = $2; // Insert a record for this tx_result and capture its ID for indexing events. txID, err := queryWithID(tx, ` INSERT INTO `+tableTxResults+` (block_id, index, created_at, tx_hash, tx_result) - VALUES ($1, $2, $3, $4) + VALUES ($1, $2, $3, $4, $5) RETURNING rowid; `, blockID, txr.Index, ts, txHash, resultData) if err != nil {