db_postgres: quote table name in StoreClientDeliveryReceipts

This commit is contained in:
Simon Ser 2021-10-13 17:38:20 +02:00
parent 2ed4491c17
commit 79dbb20f98

View File

@ -411,7 +411,7 @@ func (db *PostgresDB) StoreClientDeliveryReceipts(networkID int64, client string
} }
defer tx.Rollback() defer tx.Rollback()
_, err = tx.Exec("DELETE FROM DeliveryReceipt WHERE network = $1 AND client = $2", _, err = tx.Exec(`DELETE FROM "DeliveryReceipt" WHERE network = $1 AND client = $2`,
networkID, client) networkID, client)
if err != nil { if err != nil {
return err return err