Skip to content

Commit b48902d

Browse files
committed
fix TestQueryExecute
1 parent 272fa95 commit b48902d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration/query_execute_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ func TestQueryExecute(t *testing.T) {
3535
p3 time.Duration
3636
)
3737
err = db.Query().Do(ctx, func(ctx context.Context, s query.Session) (err error) {
38-
_, res, err := s.Execute(ctx, "SELECT $p1, $p2, $p3",
38+
_, res, err := s.Execute(ctx, `
39+
DECLARE $p1 AS Text;
40+
DECLARE $p2 AS Uint64;
41+
DECLARE $p3 AS Interval;
42+
SELECT $p1, $p2, $p3;
43+
`,
3944
query.WithParameters(
4045
ydb.ParamsBuilder().
4146
Param("$p1").Text("test").

0 commit comments

Comments
 (0)