diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 11:28:25 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 11:28:25 -0500 |
| commit | 177fbbfbc9036867161730c77709392a6756524c (patch) | |
| tree | 7a7714424e1bb11f9f3a284ce736d825ad002bf6 /tests/test-gptel-tools-git-diff.el | |
| parent | 8dc4f955791b33d2784c9ccacdf74e4ef3033cd5 (diff) | |
| download | dotemacs-177fbbfbc9036867161730c77709392a6756524c.tar.gz dotemacs-177fbbfbc9036867161730c77709392a6756524c.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/test-gptel-tools-git-diff.el')
0 files changed, 0 insertions, 0 deletions
