diff options
| author | Jonas Bernoulli | 2022-10-21 22:55:53 +0200 |
|---|---|---|
| committer | Jonas Bernoulli | 2022-10-28 14:33:49 +0200 |
| commit | 1073e16960164b901849c32019a373cb1090e20a (patch) | |
| tree | 12e3bc350788ab39d020f3423e3224d41743c2a1 /lib/malloc/dynarray_finalize.c | |
| parent | f9ed80f9d0ac1cb157e4c0604cc39fd07e7f0842 (diff) | |
| download | emacs-1073e16960164b901849c32019a373cb1090e20a.tar.gz emacs-1073e16960164b901849c32019a373cb1090e20a.zip | |
Include more information in error data for sqlite errors
Introduce a new 'sqlite-error' and use it for all errors signaled in
'src/sqlite.c', except those that already used 'sqlite-locked-error'.
Include the values of 'sqlite3_errcode', 'sqlite3_extended_errcode',
'sqlite3_errstr' and 'sqlite3_errmsg' in the error data.
* src/sqlite.c (load_dll_functions): Load 'sqlite3_extended_errcode'.
(sqlite-load-extension): Use 'xsignal1' as required by argument type.
(syms_of_sqlite): Introduce a new error type 'sqlite-error'.
(check_sqlite, sqlite-open, bind_values, sqlite-execute)
(sqlite-select, sqlite-load-extension, sqlite-next): Use it.
(sqlite_prepare_errdata): New function.
(sqlite_prepare_errmsg): Remove function.
(sqlite-execute, sqlite-select): Use new function.
(sqlite-locked-error): Derive from 'sqlite-error'.
Diffstat (limited to 'lib/malloc/dynarray_finalize.c')
0 files changed, 0 insertions, 0 deletions