@@ -945,21 +945,19 @@ func TestClient(t *testing.T) {
945
945
}
946
946
947
947
// Upsert
948
- if strings .Compare (conn .Greeting .Version , "Tarantool 1.6.7" ) >= 0 {
949
- resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
950
- if err != nil {
951
- t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
952
- }
953
- if resp == nil {
954
- t .Errorf ("Response is nil after Upsert (insert)" )
955
- }
956
- resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
957
- if err != nil {
958
- t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
959
- }
960
- if resp == nil {
961
- t .Errorf ("Response is nil after Upsert (update)" )
962
- }
948
+ resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
949
+ if err != nil {
950
+ t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
951
+ }
952
+ if resp == nil {
953
+ t .Errorf ("Response is nil after Upsert (insert)" )
954
+ }
955
+ resp , err = conn .Upsert (spaceNo , []interface {}{uint (3 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
956
+ if err != nil {
957
+ t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
958
+ }
959
+ if resp == nil {
960
+ t .Errorf ("Response is nil after Upsert (update)" )
963
961
}
964
962
965
963
// Select
@@ -1977,21 +1975,19 @@ func TestClientNamed(t *testing.T) {
1977
1975
}
1978
1976
1979
1977
// Upsert
1980
- if strings .Compare (conn .Greeting .Version , "Tarantool 1.6.7" ) >= 0 {
1981
- resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
1982
- if err != nil {
1983
- t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
1984
- }
1985
- if resp == nil {
1986
- t .Errorf ("Response is nil after Upsert (insert)" )
1987
- }
1988
- resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
1989
- if err != nil {
1990
- t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
1991
- }
1992
- if resp == nil {
1993
- t .Errorf ("Response is nil after Upsert (update)" )
1994
- }
1978
+ resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
1979
+ if err != nil {
1980
+ t .Fatalf ("Failed to Upsert (insert): %s" , err .Error ())
1981
+ }
1982
+ if resp == nil {
1983
+ t .Errorf ("Response is nil after Upsert (insert)" )
1984
+ }
1985
+ resp , err = conn .Upsert (spaceName , []interface {}{uint (1003 ), 1 }, []interface {}{[]interface {}{"+" , 1 , 1 }})
1986
+ if err != nil {
1987
+ t .Fatalf ("Failed to Upsert (update): %s" , err .Error ())
1988
+ }
1989
+ if resp == nil {
1990
+ t .Errorf ("Response is nil after Upsert (update)" )
1995
1991
}
1996
1992
1997
1993
// Select
0 commit comments