qb: tuples now returns the correct names
The names are auto generated in the form param_0, param_1, ...
This commit is contained in:
committed by
Michal Matczuk
parent
219bceab51
commit
1fda6f1e29
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user