Skip to content

Commit

Permalink
CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyasnikov committed Nov 5, 2024
1 parent 629b019 commit 3088199
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
* Fixed closing of child driver with shared balancer

## v3.89.6
* Refactored `database/sql` driver internals for query-service client support in the future

Expand Down
10 changes: 7 additions & 3 deletions tests/integration/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/ydb-platform/ydb-go-sdk/v3/internal/xtest"
"github.com/ydb-platform/ydb-go-sdk/v3/log"
"github.com/ydb-platform/ydb-go-sdk/v3/retry"
"github.com/ydb-platform/ydb-go-sdk/v3/table/result/indexed"
"github.com/ydb-platform/ydb-go-sdk/v3/trace"
)

Expand Down Expand Up @@ -168,11 +169,14 @@ func TestDriver(sourceTest *testing.T) {
t.Run("WithSharedBalancer", func(t *testing.T) {
child, err := db.With(ctx, ydb.WithSharedBalancer(db))
require.NoError(t, err)
row, err := child.Query().QueryRow(ctx, `SELECT 1`)
result, err := child.Scripting().Execute(ctx, `SELECT 1`, nil)
require.NoError(t, err)
var result int32
err = row.Scan(&result)
require.NoError(t, result.NextResultSetErr(ctx))
require.True(t, result.NextRow())
var value int32
err = result.Scan(indexed.Required(&value))
require.NoError(t, err)
require.EqualValues(t, 1, value)
err = child.Close(ctx)
require.NoError(t, err)
})
Expand Down

0 comments on commit 3088199

Please sign in to comment.