Skip to content

Commit 51e3a6c

Browse files
committed
fix transaction control
1 parent 8eded67 commit 51e3a6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/query_regression_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ DECLARE $val AS UUID;
263263
264264
SELECT CAST($val AS Utf8)`,
265265
query.WithIdempotent(),
266+
query.WithTxControl(query.SerializableReadWriteTxControl()),
266267
query.WithParameters(ydb.ParamsBuilder().Param("$val").Uuid(id).Build()),
267268
)
268269

@@ -288,6 +289,7 @@ DECLARE $val AS Utf8;
288289
SELECT CAST($val AS UUID)`,
289290
query.WithIdempotent(),
290291
query.WithParameters(ydb.ParamsBuilder().Param("$val").Text(idString).Build()),
292+
query.WithTxControl(query.SerializableReadWriteTxControl()),
291293
)
292294

293295
require.NoError(t, err)
@@ -315,6 +317,7 @@ DECLARE $val AS UUID;
315317
SELECT $val`,
316318
query.WithIdempotent(),
317319
query.WithParameters(ydb.ParamsBuilder().Param("$val").Uuid(id).Build()),
320+
query.WithTxControl(query.SerializableReadWriteTxControl()),
318321
)
319322

320323
require.NoError(t, err)

0 commit comments

Comments
 (0)