Rename var

This commit is contained in:
Tim Vaillancourt 2022-12-29 00:41:25 +01:00
parent ae43e3f356
commit 91b7bfe013

View File

@ -309,8 +309,8 @@ func TestBuildUniqueKeyRangeEndPreparedQuery(t *testing.T) {
func TestBuildUniqueKeyMinValuesPreparedQuery(t *testing.T) {
databaseName := "mydb"
originalTableName := "tbl"
columnList := NewColumnList([]string{"name", "position"})
uniqueKey := &UniqueKey{Name: "PRIMARY", Columns: *columnList}
uniqueKeyColumns := NewColumnList([]string{"name", "position"})
uniqueKey := &UniqueKey{Name: "PRIMARY", Columns: *uniqueKeyColumns}
{
query, err := BuildUniqueKeyMinValuesPreparedQuery(databaseName, originalTableName, uniqueKey)
test.S(t).ExpectNil(err)