"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/github.com/mattn/go-sqlite3/callback.go" between
gitea-1.9.3.tar.gz and gitea-1.9.4.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

callback.go  (gitea-1.9.3):callback.go  (gitea-1.9.4)
skipping to change at line 371 skipping to change at line 371
case reflect.Float32, reflect.Float64: case reflect.Float32, reflect.Float64:
return callbackRetFloat, nil return callbackRetFloat, nil
default: default:
return nil, fmt.Errorf("don't know how to convert to %s", typ) return nil, fmt.Errorf("don't know how to convert to %s", typ)
} }
} }
func callbackError(ctx *C.sqlite3_context, err error) { func callbackError(ctx *C.sqlite3_context, err error) {
cstr := C.CString(err.Error()) cstr := C.CString(err.Error())
defer C.free(unsafe.Pointer(cstr)) defer C.free(unsafe.Pointer(cstr))
C.sqlite3_result_error(ctx, cstr, -1) C.sqlite3_result_error(ctx, cstr, C.int(-1))
} }
// Test support code. Tests are not allowed to import "C", so we can't // Test support code. Tests are not allowed to import "C", so we can't
// declare any functions that use C.sqlite3_value. // declare any functions that use C.sqlite3_value.
func callbackSyntheticForTests(v reflect.Value, err error) callbackArgConverter { func callbackSyntheticForTests(v reflect.Value, err error) callbackArgConverter {
return func(*C.sqlite3_value) (reflect.Value, error) { return func(*C.sqlite3_value) (reflect.Value, error) {
return v, err return v, err
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)