diff --git a/README.md b/README.md index 2bd3f271c..7fcf96d1b 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ # Client in Go for Tarantool The package `go-tarantool` contains everything you need to connect to -[Tarantool 1.6+][tarantool-site]. +[Tarantool 1.10+][tarantool-site]. The advantage of integrating Go with Tarantool, which is an application server plus a DBMS, is that Go programmers can handle databases and perform on-the-fly @@ -32,7 +32,7 @@ faster than other packages according to public benchmarks. ## Installation -We assume that you have Tarantool version 1.6+ and a modern Linux or BSD +We assume that you have Tarantool version 1.10+ and a modern Linux or BSD operating system. You need a current version of `go`, version 1.13 or later (use `go version` to diff --git a/tarantool_test.go b/tarantool_test.go index 96bf02254..67e45db46 100644 --- a/tarantool_test.go +++ b/tarantool_test.go @@ -945,21 +945,19 @@ func TestClient(t *testing.T) { } // Upsert - if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 { - resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}}) - if err != nil { - t.Fatalf("Failed to Upsert (insert): %s", err.Error()) - } - if resp == nil { - t.Errorf("Response is nil after Upsert (insert)") - } - resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}}) - if err != nil { - t.Fatalf("Failed to Upsert (update): %s", err.Error()) - } - if resp == nil { - t.Errorf("Response is nil after Upsert (update)") - } + resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}}) + if err != nil { + t.Fatalf("Failed to Upsert (insert): %s", err.Error()) + } + if resp == nil { + t.Errorf("Response is nil after Upsert (insert)") + } + resp, err = conn.Upsert(spaceNo, []interface{}{uint(3), 1}, []interface{}{[]interface{}{"+", 1, 1}}) + if err != nil { + t.Fatalf("Failed to Upsert (update): %s", err.Error()) + } + if resp == nil { + t.Errorf("Response is nil after Upsert (update)") } // Select @@ -1977,21 +1975,19 @@ func TestClientNamed(t *testing.T) { } // Upsert - if strings.Compare(conn.Greeting.Version, "Tarantool 1.6.7") >= 0 { - resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}}) - if err != nil { - t.Fatalf("Failed to Upsert (insert): %s", err.Error()) - } - if resp == nil { - t.Errorf("Response is nil after Upsert (insert)") - } - resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}}) - if err != nil { - t.Fatalf("Failed to Upsert (update): %s", err.Error()) - } - if resp == nil { - t.Errorf("Response is nil after Upsert (update)") - } + resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}}) + if err != nil { + t.Fatalf("Failed to Upsert (insert): %s", err.Error()) + } + if resp == nil { + t.Errorf("Response is nil after Upsert (insert)") + } + resp, err = conn.Upsert(spaceName, []interface{}{uint(1003), 1}, []interface{}{[]interface{}{"+", 1, 1}}) + if err != nil { + t.Fatalf("Failed to Upsert (update): %s", err.Error()) + } + if resp == nil { + t.Errorf("Response is nil after Upsert (update)") } // Select