Skip to content

Commit 2f4905c

Browse files
committed
fix declare
1 parent b590f4f commit 2f4905c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration/query_regression_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ SELECT CAST($val AS UUID)`,
8686
idString := "6E73B41C-4EDE-4D08-9CFB-B7462D9E498B"
8787
expectedResultWithBug := []byte{0x8b, 0x49, 0x9e, 0x2d, 0x46, 0xb7, 0xfb, 0x9c, 0x4d, 0x8, 0x4e, 0xde, 0x6e, 0x73, 0xb4, 0x1c}
8888
row, err := db.Query().QueryRow(ctx, `
89+
DECLARE $val AS Text;
90+
8991
SELECT CAST($val AS UUID)`,
9092
query.WithIdempotent(),
9193
query.WithParameters(ydb.ParamsBuilder().Param("$val").Text(idString).Build()),

0 commit comments

Comments
 (0)