From a0bcd4349dc2e173e7503f0fdc60759ab7073376 Mon Sep 17 00:00:00 2001 From: Will Winder Date: Tue, 1 Mar 2022 12:09:06 -0500 Subject: [PATCH] Fix bad merge. (#904) --- idb/postgres/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idb/postgres/postgres.go b/idb/postgres/postgres.go index 235fa3ae5..8a3d20784 100644 --- a/idb/postgres/postgres.go +++ b/idb/postgres/postgres.go @@ -812,7 +812,7 @@ func buildTransactionQuery(tf idb.TransactionFilter) (query string, whereArgs [] // join in the root transaction if the returnInnerTxnOnly flag is false if !tf.ReturnInnerTxnOnly { - query += " LEFT OUTER JOIN txn root ON t.round = root.round AND t.extra->>'root-intra' = root.intra::text" + query += " LEFT OUTER JOIN txn root ON t.round = root.round AND (t.extra->>'root-intra')::int = root.intra" } if len(whereParts) > 0 {