@@ -977,21 +977,19 @@ func TestClient(t *testing.T) {
977
977
}
978
978
979
979
// Upsert
980
- if strings .Compare (conn .Greeting .Version , "Tarantool 1.6.7" ) >= 0 {
981
- resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
982
- if err != nil {
983
- t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
984
- }
985
- if resp == nil {
986
- t .Errorf ("Response is nil after Upsert (insert)" )
987
- }
988
- resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
989
- if err != nil {
990
- t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
991
- }
992
- if resp == nil {
993
- t .Errorf ("Response is nil after Upsert (update)" )
994
- }
980
+ resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
981
+ if err != nil {
982
+ t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
983
+ }
984
+ if resp == nil {
985
+ t .Errorf ("Response is nil after Upsert (insert)" )
986
+ }
987
+ resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
988
+ if err != nil {
989
+ t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
990
+ }
991
+ if resp == nil {
992
+ t .Errorf ("Response is nil after Upsert (update)" )
995
993
}
996
994
997
995
// Select
@@ -2009,21 +2007,19 @@ func TestClientNamed(t *testing.T) {
2009
2007
}
2010
2008
2011
2009
// Upsert
2012
- if strings .Compare (conn .Greeting .Version , "Tarantool 1.6.7" ) >= 0 {
2013
- resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
2014
- if err != nil {
2015
- t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
2016
- }
2017
- if resp == nil {
2018
- t .Errorf ("Response is nil after Upsert (insert)" )
2019
- }
2020
- resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
2021
- if err != nil {
2022
- t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
2023
- }
2024
- if resp == nil {
2025
- t .Errorf ("Response is nil after Upsert (update)" )
2026
- }
2010
+ resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
2011
+ if err != nil {
2012
+ t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
2013
+ }
2014
+ if resp == nil {
2015
+ t .Errorf ("Response is nil after Upsert (insert)" )
2016
+ }
2017
+ resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
2018
+ if err != nil {
2019
+ t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
2020
+ }
2021
+ if resp == nil {
2022
+ t .Errorf ("Response is nil after Upsert (update)" )
2027
2023
}
2028
2024
2029
2025
// Select
0 commit comments