[Tarantool-patches] [PATCH v1 1/2] sql: show varbinary in type mismatch error
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Thu Jun 24 23:24:34 MSK 2021
Hi! Thanks for the patchset!
> diff --git a/test/sql-tap/uuid.test.lua b/test/sql-tap/uuid.test.lua
> index 77ba06c2d..f19eb4a9c 100755
> --- a/test/sql-tap/uuid.test.lua
> +++ b/test/sql-tap/uuid.test.lua
> @@ -697,7 +697,7 @@ test:do_catchsql_test(
> [[
> SELECT cast(randomblob(10) as UUID) FROM t2 LIMIT 1;
> ]], {
> - 1, "Type mismatch: can not convert varbinary to uuid"
> + 1, "Type mismatch: can not convert x'819192E578DE3FA24AF3' to uuid"
randomblob() can return different results from time to time. I
would not check for the exact error message.
Now it somewhy returns the same values, but I suppose that might
change. The same below.
> })
>
> test:execsql([[
> @@ -858,7 +858,7 @@ test:do_catchsql_test(
> [[
> INSERT INTO tsu VALUES ('8_varbinary', randomblob(10));
> ]], {
> - 1, "Type mismatch: can not convert varbinary to uuid"
> + 1, "Type mismatch: can not convert x'733CA8769291A0FEE366' to uuid"
> })
More information about the Tarantool-patches
mailing list