Skip to content

Commit ea8d227

Browse files
committed
Use SQL_OV_ODBC3_80
1 parent 97ba2c7 commit ea8d227

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/reader/odbc/ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub const SQL_NULL_HANDLE: SqlHandle = std::ptr::null_mut();
5454
// ============================================================================
5555

5656
pub const SQL_ATTR_ODBC_VERSION: SqlInteger = 200;
57-
pub const SQL_OV_ODBC3: SqlInteger = 3;
57+
pub const SQL_OV_ODBC3_80: SqlInteger = 380;
5858

5959
// ============================================================================
6060
// Connection attributes

src/reader/odbc/wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ impl Environment {
112112
}
113113

114114
let rc = unsafe {
115-
(f.SQLSetEnvAttr)(handle, SQL_ATTR_ODBC_VERSION, SQL_OV_ODBC3 as SqlPointer, 0)
115+
(f.SQLSetEnvAttr)(handle, SQL_ATTR_ODBC_VERSION, SQL_OV_ODBC3_80 as SqlPointer, 0)
116116
};
117117
check(rc, SQL_HANDLE_ENV, handle, "Failed to set ODBC version")?;
118118

0 commit comments

Comments
 (0)