SQLite 3.51.0.

This commit is contained in:
Nuno Cruces
2025-10-18 11:06:50 +01:00
parent 191d1337e7
commit 6d92aa16ef
20 changed files with 68 additions and 58 deletions

View File

@@ -26,11 +26,16 @@ func NewContext(ctx context.Context) context.Context {
}
func GetSystemError(ctx context.Context) error {
s := ctx.Value(moduleKey{}).(*moduleState)
return s.sysError
// Test needed to simplify testing.
s, ok := ctx.Value(moduleKey{}).(*moduleState)
if ok {
return s.sysError
}
return nil
}
func SetSystemError(ctx context.Context, err error) {
// Test needed to simplify testing.
s, ok := ctx.Value(moduleKey{}).(*moduleState)
if ok {
s.sysError = err