Skip to content

How to disable AutoCommit in the Snowflake driver? #2581

Open
@felipecrv

Description

@felipecrv

What would you like help with?

From Rust, when calling Connection::commit() I get:

Error { message: "[Snowflake] Cannot commit when autocommit is enabled", status: InvalidState, vendor_code: -2147483648, sqlstate: [0, 0, 0, 0, 0], details: Some([]) }

And when I try to disable auto commit [1], I get:

Error { message: "[Snowflake] Unknown connection option 'adbc.connection.autocommit'", status: NotImplemented, vendor_code: -2147483648, sqlstate: [0, 0, 0, 0, 0], details: Some([]) }

If the driver doesn't support auto-commit, can it understand that auto-commit is disabled and let Connection::commit() calls work?

[1]

conn.set_option(OptionConnection::AutoCommit, OptionValue::Int(0))?;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: questionUsage questiongoPull requests that update Go coderustPull requests that update Rust code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions