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:
commit
f334dbde5e
@ -492,6 +492,9 @@ func BuildDMLUpdateQuery(databaseName, tableName string, tableColumns, sharedCol
|
|||||||
}
|
}
|
||||||
|
|
||||||
setClause, err := BuildSetPreparedClause(mappedSharedColumns)
|
setClause, err := BuildSetPreparedClause(mappedSharedColumns)
|
||||||
|
if err != nil {
|
||||||
|
return "", sharedArgs, uniqueKeyArgs, err
|
||||||
|
}
|
||||||
|
|
||||||
equalsComparison, err := BuildEqualsPreparedComparison(uniqueKeyColumns.Names())
|
equalsComparison, err := BuildEqualsPreparedComparison(uniqueKeyColumns.Names())
|
||||||
result = fmt.Sprintf(`
|
result = fmt.Sprintf(`
|
||||||
|
Loading…
Reference in New Issue
Block a user