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

@@ -113,12 +113,12 @@ func TestInsertBuilder(t *testing.T) {
{
B: Insert("cycling.cyclist_name").TupleColumn("id", 2),
S: "INSERT INTO cycling.cyclist_name (id) VALUES ((?,?)) ",
N: []string{"id_0", "id_1"},
N: []string{"id[0]", "id[1]"},
},
{
B: Insert("cycling.cyclist_name").TupleColumn("id", 2).Columns("user_uuid"),
S: "INSERT INTO cycling.cyclist_name (id,user_uuid) VALUES ((?,?),?) ",
N: []string{"id_0", "id_1", "user_uuid"},
N: []string{"id[0]", "id[1]", "user_uuid"},
},
// Add IF NOT EXISTS
{