Support blob types in query arguments for Go bindings

This commit is contained in:
PThorpe92 2025-01-29 11:16:31 -05:00
parent 4af6eb2f71
commit d9966d2dc8
No known key found for this signature in database
GPG key ID: 66DB3FBACBDD05CC
6 changed files with 60 additions and 73 deletions

View file

@ -35,7 +35,7 @@ func loadLibrary() error {
for _, path := range paths {
libPath := filepath.Join(path, libraryName)
if _, err := os.Stat(libPath); err == nil {
slib, dlerr := purego.Dlopen(libPath, purego.RTLD_LAZY)
slib, dlerr := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL)
if dlerr != nil {
return fmt.Errorf("failed to load library at %s: %w", libPath, dlerr)
}