Re: Non working example

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Non working example
Дата
Msg-id F93DBDB6-61CE-4AF9-A0BA-799DAD93EABB@yesql.se
обсуждение исходный текст
Ответ на Non working example  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Non working example  (Maarten van Gijssel <maarten@vgijssel.nl>)
Список pgsql-docs
> On 29 Jun 2019, at 12:45, PG Doc comments form <noreply@postgresql.org> wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/10/functions-string.html
> Description:
>
> Either I'm doing something wrong or the example `encode('123\000\001',
> 'base64')` will always result in a parsing error "string contains null
> byte”.

I think it’s something in the former category, the example works fine:

db=# select encode('123\000\001', 'base64');
  encode
----------
 MTIzAAE=
(1 row)

How are you executing the example, via psql, another client or in some other
way?  Is the data perhaps being in some preprocessed along the way before it
reaches postgres?  If you copy/paste it in psql, does that work?

cheers ./daniel


В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Non working example
Следующее
От: Maarten van Gijssel
Дата:
Сообщение: Re: Non working example