1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/// Quirks of databases and their drivers we can take into account exporting data from database into
/// Arrow arrays.
#[derive(Clone)]
pub struct Quirks {
    /// IBM DB2 has been observered that the length indicators returned from memory are garbage for
    /// strings. It seems to be preferable to rely on the terminating zero exclusively to determine
    /// string length. This behavior seems to so far only manifest with variadic string fields.
    /// See: <https://github.com/pacman82/arrow-odbc-py/issues/68> and also
    /// <https://github.com/pacman82/odbc-api/issues/398>
    pub indicators_returned_from_bulk_fetch_are_memory_garbage: bool,
}

impl Quirks {
    pub fn new() -> Self {
        Self {
            indicators_returned_from_bulk_fetch_are_memory_garbage: false,
        }
    }
}

impl Default for Quirks {
    fn default() -> Self {
        Quirks::new()
    }
}