From: Rudolf Schlatte <rudi@constantly.at>
To: 54591@debbugs.gnu.org
Subject: bug#54591: 29.0.50; sqlite-select returns blob result as multibyte string
Date: Sun, 03 Apr 2022 12:42:15 +0200 [thread overview]
Message-ID: <m1y20mzbw8.fsf@constantly.at> (raw)
In-Reply-To: <C353DC4E-D4B0-4A0C-B4A9-E7A942B37A88@gmail.com>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> No, I posted a later post which has the solution I'm going to implement.
>
> (Which is basically a tweak on one of the solutions I proposed in my
> first message in this thread (with the comment "yuck"). I'm still
> waiting for somebody to correct me that I'm reading the sqlite
> documentation wrong and that you can actually find out the column type
> you're inserting into, because it seems rather absurd that that
> functionality doesn't exist.)
Does the transcript below do what you're looking for?
$ sqlite3
SQLite version 3.37.0 2021-12-09 01:34:53
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> create table foo(x text not null, y blob not null);
sqlite> select * from sqlite_master;
table|foo|foo|2|CREATE TABLE foo(x text not null, y blob not null)
sqlite> .schema sqlite_master
CREATE TABLE sqlite_master (
type text,
name text,
tbl_name text,
rootpage integer,
sql text
);
sqlite>
next prev parent reply other threads:[~2022-04-03 10:42 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-27 5:49 bug#54591: 29.0.50; sqlite-select returns blob result as multibyte string Yuan Fu
2022-03-27 6:40 ` Eli Zaretskii
2022-03-27 12:04 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-27 14:56 ` Eli Zaretskii
2022-03-29 14:38 ` Lars Ingebrigtsen
2022-03-29 15:38 ` Eli Zaretskii
2022-03-31 11:54 ` Lars Ingebrigtsen
2022-04-01 18:34 ` Johannes Grødem
2022-04-02 5:31 ` Eli Zaretskii
2022-04-02 6:33 ` Johannes Grødem
2022-04-02 6:52 ` Eli Zaretskii
2022-04-02 12:59 ` Lars Ingebrigtsen
2022-04-02 13:51 ` Eli Zaretskii
2022-04-02 13:59 ` Lars Ingebrigtsen
2022-04-02 14:22 ` Eli Zaretskii
2022-04-02 14:38 ` Lars Ingebrigtsen
2022-04-02 15:26 ` Eli Zaretskii
2022-04-02 15:28 ` Lars Ingebrigtsen
2022-04-02 15:40 ` Lars Ingebrigtsen
2022-04-03 10:42 ` Rudolf Schlatte [this message]
2022-04-03 11:43 ` Lars Ingebrigtsen
2022-04-02 14:06 ` Lars Ingebrigtsen
2022-04-28 12:58 ` Lars Ingebrigtsen
2022-04-29 4:59 ` Yuan Fu
2022-04-29 10:04 ` Lars Ingebrigtsen
2022-04-30 5:27 ` Yuan Fu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1y20mzbw8.fsf@constantly.at \
--to=rudi@constantly.at \
--cc=54591@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.