Merge pull request #810 from yaserazfar/check_unchecked_errors

Adds error checking for an err variable that was left unchecked
This commit is contained in:
Tim Vaillancourt 2020-08-14 17:03:10 +02:00 committed by GitHub
commit f334dbde5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -492,6 +492,9 @@ func BuildDMLUpdateQuery(databaseName, tableName string, tableColumns, sharedCol
}
setClause, err := BuildSetPreparedClause(mappedSharedColumns)
if err != nil {
return "", sharedArgs, uniqueKeyArgs, err
}
equalsComparison, err := BuildEqualsPreparedComparison(uniqueKeyColumns.Names())
result = fmt.Sprintf(`