Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTB sometimes gets BAD_ACCESS error when getting params in bind() function #197

Open
osawyerr opened this issue Aug 12, 2023 · 1 comment

Comments

@osawyerr
Copy link

osawyerr commented Aug 12, 2023

Hi there,

I'm running on MacOS and trying to use a VTB. Sometimes I get a BAD_ACCESS error in the bind() function when getting the bind parameters. It appears to be intermittent - sometimes it works fine other times it doesn't.

fn bind(
        bind: &BindInfo, bind_data: *mut DemoBindData,
    ) -> Result<(), Box<dyn std::error::Error>> {
        let param_count = bind.get_parameter_count();
        assert_eq!(param_count, 5);

        let query_id = bind.get_parameter(0).to_string(); // sometimes this gives a BAD_ACCESS error.
...
@osawyerr osawyerr changed the title Cannot use vtab arrow posted in error Aug 12, 2023
@osawyerr osawyerr changed the title posted in error VTB get sometimes gets BAD_ACCESS error when getting params in bind() function Aug 14, 2023
@osawyerr osawyerr changed the title VTB get sometimes gets BAD_ACCESS error when getting params in bind() function VTB sometimes gets BAD_ACCESS error when getting params in bind() function Aug 14, 2023
@wangfenjin
Copy link
Collaborator

Please provide a reproducible example if possible. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants