This commit is contained in:
parent
b50479cf5b
commit
18fbe7d340
|
@ -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),
|
||||
))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue