Skip to content

Commit

Permalink
error message typo
Browse files Browse the repository at this point in the history
  • Loading branch information
meiji163 committed Dec 18, 2024
1 parent 703ae0d commit 1875fb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/sql/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@ func NewDMLUpdateQueryBuilder(databaseName, tableName string, tableColumns, shar
return nil, fmt.Errorf("no unique key columns found in NewDMLUpdateQueryBuilder")
}
// If unique key contains virtual columns, those column won't be in sharedColumns
// which only contains non-vritual columns
// which only contains non-virtual columns
nonVirtualUniqueKeyColumns := uniqueKeyColumns.FilterBy(func(column Column) bool { return !column.IsVirtual })
if !nonVirtualUniqueKeyColumns.IsSubsetOf(sharedColumns) {
return nil, fmt.Errorf("unique key columns is not a subset of shared columns in NewDMLUpdateQueryBuilder")
return nil, fmt.Errorf("unique key columns is not a subset of shared columns in NewDMLUpdateQueryBuilder")
}
databaseName = EscapeName(databaseName)
tableName = EscapeName(tableName)
Expand Down

0 comments on commit 1875fb9

Please sign in to comment.