1pub const C_TYPES_EXTENDED: i16 = 0x04000;
4
5#[repr(i16)]
8#[derive(Debug, PartialEq, Eq, Clone, Copy)]
9pub enum CDataType {
10 Ard = -99,
12
13 Apd = -100,
15
16 UTinyInt = -28,
17 UBigInt = -27,
18 STinyInt = -26,
19 SBigInt = -25,
20
21 ULong = -18,
22 UShort = -17,
23 SLong = -16,
24 SShort = -15,
25
26 #[cfg(feature = "odbc_version_3_50")]
27 Guid = -11,
28
29 WChar = -8,
30
31 Bit = -7,
32 Binary = -2,
35 Char = 1,
37 Numeric = 2,
38
39 Float = 7,
43 Double = 8,
44
45 Date = 9,
47 Time = 10,
49 TimeStamp = 11,
51
52 TypeDate = 91,
54 TypeTime = 92,
56 TypeTimestamp = 93,
58 #[cfg(feature = "odbc_version_4")]
59 TypeTimeWithTimezone = 94,
60 #[cfg(feature = "odbc_version_4")]
61 TypeTimestampWithTimezone = 95,
62
63 Default = 99,
64
65 IntervalYear = 101,
66 IntervalMonth = 102,
67 IntervalDay = 103,
68 IntervalHour = 104,
69 IntervalMinute = 105,
70 IntervalSecond = 106,
71 IntervalYearToMonth = 107,
72 IntervalDayToHour = 108,
73 IntervalDayToMinute = 109,
74 IntervalDayToSecond = 110,
75 IntervalHourToMinute = 111,
76 IntervalHourToSecond = 112,
77 IntervalMinuteToSecond = 113,
78
79 SsTime2 = C_TYPES_EXTENDED,
80 SsTimestampOffset = C_TYPES_EXTENDED + 1,
81}
82
83#[cfg(windows)]
84pub use CDataType::ULong as UBigInt;
85#[cfg(not(windows))]
86pub use CDataType::ULong as Bookmark;