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