Rename var
This commit is contained in:
parent
ae43e3f356
commit
91b7bfe013
@ -309,8 +309,8 @@ func TestBuildUniqueKeyRangeEndPreparedQuery(t *testing.T) {
|
|||||||
func TestBuildUniqueKeyMinValuesPreparedQuery(t *testing.T) {
|
func TestBuildUniqueKeyMinValuesPreparedQuery(t *testing.T) {
|
||||||
databaseName := "mydb"
|
databaseName := "mydb"
|
||||||
originalTableName := "tbl"
|
originalTableName := "tbl"
|
||||||
columnList := NewColumnList([]string{"name", "position"})
|
uniqueKeyColumns := NewColumnList([]string{"name", "position"})
|
||||||
uniqueKey := &UniqueKey{Name: "PRIMARY", Columns: *columnList}
|
uniqueKey := &UniqueKey{Name: "PRIMARY", Columns: *uniqueKeyColumns}
|
||||||
{
|
{
|
||||||
query, err := BuildUniqueKeyMinValuesPreparedQuery(databaseName, originalTableName, uniqueKey)
|
query, err := BuildUniqueKeyMinValuesPreparedQuery(databaseName, originalTableName, uniqueKey)
|
||||||
test.S(t).ExpectNil(err)
|
test.S(t).ExpectNil(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user