Change tuple-element parameter names to name[idx]

This commit is contained in:
Drahflow
2022-02-16 16:50:09 +01:00
committed by Michal Jan Matczuk
parent 58908485da
commit 8054b9d47b
6 changed files with 30 additions and 30 deletions

View File

@@ -48,7 +48,7 @@ func TestUpdateBuilder(t *testing.T) {
{
B: Update("cycling.cyclist_name").SetTuple("id", 2).Set("user_uuid", "firstname").Where(EqTuple("id", 2)),
S: "UPDATE cycling.cyclist_name SET id=(?,?),user_uuid=?,firstname=? WHERE id=(?,?) ",
N: []string{"id_0", "id_1", "user_uuid", "firstname", "id_0", "id_1"},
N: []string{"id[0]", "id[1]", "user_uuid", "firstname", "id[0]", "id[1]"},
},
// Add SET SetFunc
{