Skip to content

Commit

Permalink
chore: Update to odbc-api 11
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Feb 16, 2025
1 parent b3981d2 commit 191d065
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 66 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ tempfile = "3.16.0"
# Using ODBC version 3.5 is avoiding warnings with drivers which only support 3.5 as oppossed to
# 3.8. Currently odbc2parquet does not need to use use any ODBC version 3.8 features.
[dependencies.odbc-api]
version = "10"
version = "11"
features = ["odbc_version_3_5"]

[dependencies.clap]
Expand Down
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn query(opt: QueryOpt) -> Result<(), Error> {
};

if let Some(cursor) = odbc_conn
.into_cursor(&query, params.as_slice())
.into_cursor(&query, params.as_slice(), None)
// Drop the connection for odbc_api::ConnectionAndError in order to make the error
// convertible into an anyhow error. The connection is offered by odbc_api in the error type
// to allow reusing the same connection, even after conversion into cursor failed. However
Expand Down
Loading

0 comments on commit 191d065

Please sign in to comment.