Struct odbc_api::TooLargeBufferSize
source · pub struct TooLargeBufferSize {
pub num_elements: usize,
pub element_size: usize,
}
Expand description
Error indicating a failed allocation for a column buffer
Fields§
§num_elements: usize
Number of elements supposed to be in the buffer.
element_size: usize
Element size in the buffer in bytes.
Implementations§
source§impl TooLargeBufferSize
impl TooLargeBufferSize
sourcepub fn add_context(self, buffer_index: u16) -> Error
pub fn add_context(self, buffer_index: u16) -> Error
Map the column allocation error to an crate::Error
adding the context of which
column caused the allocation error.