@@ -442,7 +442,7 @@ func TestBuildDMLInsertQuery(t *testing.T) {
442
442
args := []interface {}{3 , "testname" , "first" , 17 , 23 }
443
443
{
444
444
sharedColumns := NewColumnList ([]string {"id" , "name" , "position" , "age" })
445
- query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
445
+ query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
446
446
test .S (t ).ExpectNil (err )
447
447
expected := `
448
448
replace /* gh-ost mydb.tbl */
@@ -456,7 +456,7 @@ func TestBuildDMLInsertQuery(t *testing.T) {
456
456
}
457
457
{
458
458
sharedColumns := NewColumnList ([]string {"position" , "name" , "age" , "id" })
459
- query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
459
+ query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
460
460
test .S (t ).ExpectNil (err )
461
461
expected := `
462
462
replace /* gh-ost mydb.tbl */
@@ -470,12 +470,12 @@ func TestBuildDMLInsertQuery(t *testing.T) {
470
470
}
471
471
{
472
472
sharedColumns := NewColumnList ([]string {"position" , "name" , "surprise" , "id" })
473
- _ , _ , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
473
+ _ , _ , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
474
474
test .S (t ).ExpectNotNil (err )
475
475
}
476
476
{
477
477
sharedColumns := NewColumnList ([]string {})
478
- _ , _ , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
478
+ _ , _ , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
479
479
test .S (t ).ExpectNotNil (err )
480
480
}
481
481
}
@@ -489,7 +489,7 @@ func TestBuildDMLInsertQuerySignedUnsigned(t *testing.T) {
489
489
// testing signed
490
490
args := []interface {}{3 , "testname" , "first" , int8 (- 1 ), 23 }
491
491
sharedColumns := NewColumnList ([]string {"id" , "name" , "position" , "age" })
492
- query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
492
+ query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
493
493
test .S (t ).ExpectNil (err )
494
494
expected := `
495
495
replace /* gh-ost mydb.tbl */
@@ -505,7 +505,7 @@ func TestBuildDMLInsertQuerySignedUnsigned(t *testing.T) {
505
505
// testing unsigned
506
506
args := []interface {}{3 , "testname" , "first" , int8 (- 1 ), 23 }
507
507
sharedColumns .SetUnsigned ("position" )
508
- query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
508
+ query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
509
509
test .S (t ).ExpectNil (err )
510
510
expected := `
511
511
replace /* gh-ost mydb.tbl */
@@ -521,7 +521,7 @@ func TestBuildDMLInsertQuerySignedUnsigned(t *testing.T) {
521
521
// testing unsigned
522
522
args := []interface {}{3 , "testname" , "first" , int32 (- 1 ), 23 }
523
523
sharedColumns .SetUnsigned ("position" )
524
- query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , args )
524
+ query , sharedArgs , err := BuildDMLInsertQuery (databaseName , tableName , tableColumns , sharedColumns , sharedColumns , args )
525
525
test .S (t ).ExpectNil (err )
526
526
expected := `
527
527
replace /* gh-ost mydb.tbl */
0 commit comments