@@ -2,7 +2,7 @@ use crate::{
22 BulkOperation , CDataType , Char , CompletionType , ConnectionAttribute , Desc , DriverConnectOption ,
33 EnvironmentAttribute , FetchOrientation , FreeStmtOption , HDbc , HDesc , HEnv , HStmt , HWnd , Handle ,
44 HandleType , InfoType , Len , Lock , Nullability , Operation , ParamType , Pointer , RetCode ,
5- SetPosIRow , SqlDataType , SqlReturn , StatementAttribute , ULen , USmallInt , WChar ,
5+ SetPosIRow , SqlDataType , SqlReturn , StatementAttribute , ULen , WChar ,
66} ;
77
88pub static mut NUM_ENVIRONMENT : u32 = 0 ;
@@ -173,7 +173,7 @@ extern "system" {
173173 // Can be used since odbc version 3.8 to stream results
174174 pub fn SQLGetData (
175175 statement_handle : HStmt ,
176- col_or_param_num : USmallInt ,
176+ col_or_param_num : u16 ,
177177 target_type : CDataType ,
178178 target_value_ptr : Pointer ,
179179 buffer_length : Len ,
@@ -402,7 +402,7 @@ extern "system" {
402402 /// `SUCCESS`, `SUCCESS_WITH_INFO`, `ERROR` or `INVALID_HANDLE`
403403 pub fn SQLBindParameter (
404404 hstmt : HStmt ,
405- parameter_number : USmallInt ,
405+ parameter_number : u16 ,
406406 input_output_type : ParamType ,
407407 value_type : CDataType ,
408408 parameter_type : SqlDataType ,
@@ -467,7 +467,7 @@ extern "system" {
467467 /// `SUCCESS`, `SUCCESS_WITH_INFO`, `ERROR`, or `INVALID_HANDLE`.
468468 pub fn SQLBindCol (
469469 hstmt : HStmt ,
470- col_number : USmallInt ,
470+ col_number : u16 ,
471471 target_type : CDataType ,
472472 target_value : Pointer ,
473473 buffer_length : Len ,
@@ -496,7 +496,7 @@ extern "system" {
496496 /// `SUCCESS`, `SUCCESS_WITH_INFO`, `ERROR`, `INVALID_HANDLE`, or `SQL_STILL_EXECUTING`.
497497 pub fn SQLColAttributeW (
498498 statement_handle : HStmt ,
499- column_number : USmallInt ,
499+ column_number : u16 ,
500500 field_identifier : Desc ,
501501 character_attribute_ptr : Pointer ,
502502 buffer_length : i16 ,
@@ -511,7 +511,7 @@ extern "system" {
511511 /// `SUCCESS`, `SUCCESS_WITH_INFO`, `ERROR`, `INVALID_HANDLE`, or `SQL_STILL_EXECUTING`.
512512 pub fn SQLColAttribute (
513513 statement_handle : HStmt ,
514- column_number : USmallInt ,
514+ column_number : u16 ,
515515 field_identifier : Desc ,
516516 character_attribute_ptr : Pointer ,
517517 buffer_length : i16 ,
@@ -826,7 +826,7 @@ extern "system" {
826826 /// `INVALID_HANDLE`.
827827 pub fn SQLDescribeCol (
828828 hstmt : HStmt ,
829- col_number : USmallInt ,
829+ col_number : u16 ,
830830 col_name : * mut Char ,
831831 buffer_length : i16 ,
832832 name_length : * mut i16 ,
@@ -846,7 +846,7 @@ extern "system" {
846846 /// `INVALID_HANDLE`.
847847 pub fn SQLDescribeColW (
848848 hstmt : HStmt ,
849- col_number : USmallInt ,
849+ col_number : u16 ,
850850 col_name : * mut WChar ,
851851 buffer_length : i16 ,
852852 name_length : * mut i16 ,
@@ -865,7 +865,7 @@ extern "system" {
865865 /// `INVALID_HANDLE`.
866866 pub fn SQLDescribeParam (
867867 statement_handle : HStmt ,
868- parameter_number : USmallInt ,
868+ parameter_number : u16 ,
869869 data_type_ptr : * mut SqlDataType ,
870870 parameter_size_ptr : * mut ULen ,
871871 decimal_digits_ptr : * mut i16 ,
0 commit comments