Skip to content

Commit

Permalink
fix declare
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby committed Oct 10, 2024
1 parent b590f4f commit 2f4905c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integration/query_regression_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ SELECT CAST($val AS UUID)`,
idString := "6E73B41C-4EDE-4D08-9CFB-B7462D9E498B"
expectedResultWithBug := []byte{0x8b, 0x49, 0x9e, 0x2d, 0x46, 0xb7, 0xfb, 0x9c, 0x4d, 0x8, 0x4e, 0xde, 0x6e, 0x73, 0xb4, 0x1c}
row, err := db.Query().QueryRow(ctx, `
DECLARE $val AS Text;
SELECT CAST($val AS UUID)`,
query.WithIdempotent(),
query.WithParameters(ydb.ParamsBuilder().Param("$val").Text(idString).Build()),
Expand Down

0 comments on commit 2f4905c

Please sign in to comment.