diff --git a/SynchRoGazer.go b/SynchRoGazer.go index 55b447e..e095f91 100644 --- a/SynchRoGazer.go +++ b/SynchRoGazer.go @@ -204,17 +204,17 @@ func main() { if len(*pgSizeRow) > 0 { pgSettings.UpdateSTMT, err = handle.Prepare(fmt.Sprintf("UPDATE %s SET %s = $2, %s = $3, %s = $4 WHERE %s = $1;", pq.QuoteIdentifier(*pgTable), - pq.QuoteIdentifier(*pgPathRow), pq.QuoteIdentifier(*pgMd5Row), - pq.QuoteIdentifier(*pgSizeRow), pq.QuoteIdentifier(*pgSha256Row), + pq.QuoteIdentifier(*pgSizeRow), + pq.QuoteIdentifier(*pgPathRow), )) } else { pgSettings.UpdateSTMT, err = handle.Prepare(fmt.Sprintf("UPDATE %s SET %s = $2, %s = $3 WHERE %s = $1;", pq.QuoteIdentifier(*pgTable), - pq.QuoteIdentifier(*pgPathRow), pq.QuoteIdentifier(*pgMd5Row), pq.QuoteIdentifier(*pgSha256Row), + pq.QuoteIdentifier(*pgPathRow), )) }