Skip to content

Commit f1a0d97

Browse files
committed
fix result of execute query (transaction object)
1 parent f56bf3e commit f1a0d97

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/query/execute_query.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ func execute(ctx context.Context, s *Session, c Ydb_Query_V1.QueryServiceClient,
7676
return nil, nil, xerrors.WithStackTrace(err)
7777
}
7878

79+
if txID == "" {
80+
return nil, r, nil
81+
}
82+
7983
return &transaction{
8084
id: txID,
8185
s: s,

0 commit comments

Comments
 (0)