Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
| От | Илья Чердаков |
|---|---|
| Тема | Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions |
| Дата | |
| Msg-id | aa24964a-f0d7-435e-9254-bb69823948d6@gmail.com обсуждение |
| Ответ на | Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions (Andrey Borodin <x4mmm@yandex-team.ru>) |
| Ответы |
Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions
|
| Список | pgsql-hackers |
31.10.2025 2:10, Masahiko Sawada wrote:
Greetings!--- I think we should update the documentation in the uuid section about casting data between bytea and uuid. For references, we have a similar description for bytea and integer[1].
I briefly tested the patched version of v3. The implemented
functionality works correctly.
---
You can also add a case with the error from v3-0002
"invalid base32hex end sequence" to the tests :
+ ereport(ERROR,
+ (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
+ errmsg("invalid base32hex end sequence"),
+ errhint("Input data has non-zero padding bits.")));
---
I agree with Masahiko Sawada; information about conversions
should be added to the documentation.
--
Best regards,
Ilya Cherdakov, PostgresPro
В списке pgsql-hackers по дате отправления: