From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
---|---|
To: | maarten(at)vgijssel(dot)nl, pgsql-docs(at)lists(dot)postgresql(dot)org |
Subject: | Re: Non working example |
Date: | 2019-07-01 09:02:25 |
Message-ID: | F93DBDB6-61CE-4AF9-A0BA-799DAD93EABB@yesql.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
> On 29 Jun 2019, at 12:45, PG Doc comments form <noreply(at)postgresql(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Maarten van Gijssel | 2019-07-01 10:19:12 | Re: Non working example |
Previous Message | PG Doc comments form | 2019-06-29 10:45:27 | Non working example |