From 4917cee11c4683dfd23f9e6e0ab0cbd68aa68b80 Mon Sep 17 00:00:00 2001 From: Till Faelligen Date: Thu, 15 Oct 2020 17:43:44 +0200 Subject: [PATCH] Fix column count error --- syncapi/storage/postgres/receipt_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/storage/postgres/receipt_table.go b/syncapi/storage/postgres/receipt_table.go index e21b2e7a3..8cde95c12 100644 --- a/syncapi/storage/postgres/receipt_table.go +++ b/syncapi/storage/postgres/receipt_table.go @@ -52,7 +52,7 @@ const upsertReceipt = "" + " RETURNING id" const selectRoomReceipts = "" + - "SELECT id, room_id, receipt_type, user_id, event_id, receipt_ts" + + "SELECT room_id, receipt_type, user_id, event_id, receipt_ts" + " FROM syncapi_receipts" + " WHERE room_id = $1 AND id > $2"