~emersion/soju

79dbb20f98b7ef38346f1419f12c9d0254ddef7f — Simon Ser 8 days ago 2ed4491
db_postgres: quote table name in StoreClientDeliveryReceipts
1 files changed, 1 insertions(+), 1 deletions(-)

M db_postgres.go
M db_postgres.go => db_postgres.go +1 -1
@@ 411,7 411,7 @@ func (db *PostgresDB) StoreClientDeliveryReceipts(networkID int64, client string
	}
	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)
	if err != nil {
		return err