bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58363: 29.0.50; sqlite-select does not signal errors and errors shou


From: Lars Ingebrigtsen
Subject: bug#58363: 29.0.50; sqlite-select does not signal errors and errors should be improved
Date: Tue, 11 Oct 2022 02:23:21 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Jonas Bernoulli <jonas@bernoul.li> writes:

> You should probably do the same for sqlite-execute.

Now done.

> So I would encourage you to always (i.e., not only in sqlite-select)
> signal
>
>   (sqlite-error sqlite_errstr() sqlite_errmsg() sqlite_errcode())

Patches welcome.

> By the way, for one particular error sqlite-execute already uses a
> separate signal: Qsqlite_locked_error.  But only that function does it
> and only for that one error.  That seems highly inconsistent.  I would
> recommend removing this signal and replacing it with Qsqlite_error and
> using that for every error and to always include all available data,
> filling in nil when a particular piece is not available.

It's a retryable error, so it's nice to be able to differentiate easily.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]