odbc-rs
odbc-rs copied to clipboard
Is it possible to get SQL_INTERVAL_STRUCT from a cursor?
I am working with a Vertica database, and I need to be able to extract its Interval
type. I see from the source of this project, several structs related to interval, such as SQL_INTERVAL_STRUCT
, but if I try to use this as the type to get_data
, like this:
let value = cursor.get_data::<SQL_INTERVAL_STRUCT>(i as u16)?;
I get this compile error:
^^^^^^^^ the trait `odbc::statement::types::OdbcType<'_>` is not implemented for `odbc_sys::SQL_INTERVAL_STRUCT`
I also tried using SQL_INTERVAL_UNION
, but got the same error.
I should note that I can read all the other relevant data types from my database, so all my other uses cases are well met by this crate.
Am I doing something wrong, am I missing something, or are these types not usable by a client program?