qb: tuples now returns the correct names

The names are auto generated in the form param_0, param_1, ...
This commit is contained in:
Henrik Johansson
2019-05-14 10:58:37 +02:00
committed by Michal Matczuk
parent 219bceab51
commit 1fda6f1e29
6 changed files with 25 additions and 18 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", "user_uuid", "firstname", "id"},
N: []string{"id_0", "id_1", "user_uuid", "firstname", "id_0", "id_1"},
},
// Add SET SetFunc
{