adds error checking for an err variable that was left unchecked

This commit is contained in:
Yaser Azfar 2019-12-27 16:54:43 +13:00
parent ea339b6023
commit 2eb141010b

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(`