Skip to content

Commit

Permalink
Merge pull request #108 from yekimov/iu64_fix
Browse files Browse the repository at this point in the history
OdbcType implementation fix for i64 and u64.
  • Loading branch information
Konstantin V. Salikhov authored Apr 12, 2019
2 parents 106273f + ff03d61 commit d6fcefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/statement/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ unsafe impl<'a> OdbcType<'a> for u32 {

unsafe impl<'a> OdbcType<'a> for i64 {
fn sql_data_type() -> ffi::SqlDataType {
ffi::SQL_INTEGER
ffi::SQL_EXT_BIGINT
}
fn c_data_type() -> ffi::SqlCDataType {
ffi::SQL_C_SBIGINT
Expand All @@ -323,7 +323,7 @@ unsafe impl<'a> OdbcType<'a> for i64 {

unsafe impl<'a> OdbcType<'a> for u64 {
fn sql_data_type() -> ffi::SqlDataType {
ffi::SQL_INTEGER
ffi::SQL_EXT_BIGINT
}
fn c_data_type() -> ffi::SqlCDataType {
ffi::SQL_C_UBIGINT
Expand Down

0 comments on commit d6fcefb

Please sign in to comment.