agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Alexey Bashtanov <bashtanov@imap.cc>
To: Brice André <brice@famille-andre.be>
To: pgsql-sql@postgresql.org
Subject: Re: Problem inserting binary data in bytea column of UTF-8 database
Date: Thu, 5 Jul 2018 14:48:59 +0100
Message-ID: <9dfb240b-dbc5-c9a2-cd28-a249e7329733@imap.cc> (raw)
In-Reply-To: <CAOBG12mH+BnY=YNzgYyRvbb_cAoizsVSPrdFVZujv=AtSPuySw@mail.gmail.com>
References: <CAOBG12mH+BnY=YNzgYyRvbb_cAoizsVSPrdFVZujv=AtSPuySw@mail.gmail.com>
Hi Brice,
On 03/07/18 05:28, Brice André wrote:
> insert into test (test) values (E'\xC744'::bytea);
I think double backslash needs to be used.
See
https://www.postgresql.org/docs/current/static/datatype-binary.html#id-1.5.7.12.9
Best,
Alex
view thread (4+ messages) latest in thread
Message-ID: <9dfb240b-dbc5-c9a2-cd28-a249e7329733@imap.cc>
Permalink: ../9dfb240b-dbc5-c9a2-cd28-a249e7329733@imap.cc/
Also on: postgresql.org/message-id/9dfb240b-dbc5-c9a2-cd28-a249e7329733@imap.cc
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: bashtanov@imap.cc, brice@famille-andre.be
Subject: Re: Problem inserting binary data in bytea column of UTF-8 database
In-Reply-To: <9dfb240b-dbc5-c9a2-cd28-a249e7329733@imap.cc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox