Re: encode/decode support for base64url

From: Pavel Seleznev <pavel(dot)seleznev(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Florents Tselai <florents(dot)tselai(at)gmail(dot)com>
Subject: Re: encode/decode support for base64url
Date: 2025-05-06 08:48:36
Message-ID: 174652131605.631.4433021944530218788.pgcf@coridan.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In the strings.sql file there is such code
SELECT encode('\x69b73eff', 'base64'); -- Expected: abc+/w==

In the strings.out file
+SELECT encode('\x69b73eff', 'base64'); -- Expected: abc+/w==
+ encode
+----------
+ abc+/w==
+(1 row)
+

maybe you should remove the additional description of the expected value in this way?

strings.sql
SELECT encode('\x69b73eff', 'base64') = "abc+/w=="

strings.out
SELECT encode('\x69b73eff', 'base64') = "abc+/w=="
----------
t
(1 row)

Regards,
Pavel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2025-05-06 08:49:02 Re: doc pg_constraint.convalidated column description need update
Previous Message Dmitry Dolgov 2025-05-06 08:05:21 Re: Changing shared_buffers without restart