aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 11:28:25 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 11:28:25 -0500
commit0996d2fc71e115dc895fbf30eb41dbf09fda5962 (patch)
tree852d10b23ae7fa37f4311b00e73483b0eaf13e76 /tests/fixtures
parentf60f82a38896e24788318e0c1f103d20f67331d5 (diff)
downloaddotemacs-0996d2fc71e115dc895fbf30eb41dbf09fda5962.tar.gz
dotemacs-0996d2fc71e115dc895fbf30eb41dbf09fda5962.zip
fix(config-utilities): guard emacsql-close against nil sqlite handle
EmacSQL 4.3.1 registers a finalizer per connection that calls emacsql-close after GC. The sqlite-builtin and sqlite-module backends clear their handle slot during an explicit close, so the finalizer later runs emacsql-close on a closed connection and sqlite-close fires: finalizer failed: (wrong-type-argument sqlitep nil) Adds an :around method on emacsql-close for both backends that short-circuits when the handle is already nil. Requires cl-generic and eieio at the top of the file so the cl-defmethod forms expand.
Diffstat (limited to 'tests/fixtures')
0 files changed, 0 insertions, 0 deletions