You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/org/olap4j/metadata/Datatype.java
+31-5
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,19 @@ public enum Datatype {
31
31
32
32
DOUBLE(5, "DBTYPE_R8", "A double-precision floating-point value: Double"),
33
33
34
-
CURRENCY(6, "DBTYPE_CY", "A currency value: LARGE_INTEGER, Currency is a fixed-point number with four digits to the right of the decimal point. It is stored in an eight-byte signed integer, scaled by 10,000."),
35
-
36
-
BOOLEAN(11, "DBTYPE_BOOL", "A Boolean value stored in the same way as in Automation: VARIANT_BOOL; 0 means false and ~0 (bitwise, the value is not 0; that is, all bits are set to 1) means true."),
34
+
CURRENCY(
35
+
6,
36
+
"DBTYPE_CY",
37
+
"A currency value: LARGE_INTEGER, Currency is a fixed-point number with "
38
+
+ "four digits to the right of the decimal point. It is stored in an "
39
+
+ "eight-byte signed integer, scaled by 10,000."),
40
+
41
+
BOOLEAN(
42
+
11,
43
+
"DBTYPE_BOOL",
44
+
"A Boolean value stored in the same way as in Automation: VARIANT_BOOL; "
45
+
+ "0 means false and ~0 (bitwise, the value is not 0; that is, all bits "
46
+
+ "are set to 1) means true."),
37
47
38
48
/**
39
49
* Used by SQL Server for value.
@@ -54,12 +64,28 @@ public enum Datatype {
54
64
* The following values exactly match VARENUM
55
65
* in Automation but cannot be used in VARIANT.
56
66
*/
57
-
LARGE_INTEGER(20, "DBTYPE_I8", "An eight-byte, signed integer: LARGE_INTEGER"),
67
+
LARGE_INTEGER(
68
+
20,
69
+
"DBTYPE_I8",
70
+
"An eight-byte, signed integer: LARGE_INTEGER"),
58
71
59
72
/*
60
73
* The following values are not in VARENUM in OLE.
61
74
*/
62
-
STRING(130, "DBTYPE_WSTR", "A null-terminated Unicode character string: wchar_t[length]; If DBTYPE_WSTR is used by itself, the number of bytes allocated for the string, including the null-termination character, is specified by cbMaxLen in the DBBINDING structure. If DBTYPE_WSTR is combined with DBTYPE_BYREF, the number of bytes allocated for the string, including the null-termination character, is at least the length of the string plus two. In either case, the actual length of the string is determined from the bound length value. The maximum length of the string is the number of allocated bytes divided by sizeof(wchar_t) and truncated to the nearest integer.");
75
+
STRING(
76
+
130,
77
+
"DBTYPE_WSTR",
78
+
"A null-terminated Unicode character string: wchar_t[length]; If "
79
+
+ "DBTYPE_WSTR is used by itself, the number of bytes allocated "
80
+
+ "for the string, including the null-termination character, is "
81
+
+ "specified by cbMaxLen in the DBBINDING structure. If "
82
+
+ "DBTYPE_WSTR is combined with DBTYPE_BYREF, the number of bytes "
83
+
+ "allocated for the string, including the null-termination character, "
84
+
+ "is at least the length of the string plus two. In either case, the "
85
+
+ "actual length of the string is determined from the bound length "
86
+
+ "value. The maximum length of the string is the number of allocated "
87
+
+ "bytes divided by sizeof(wchar_t) and truncated to the nearest "
0 commit comments