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: docs/connect/odbc/data-classification.md
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,10 +43,10 @@ SQLRETURN SQLGetDescField(
43
43
[Input] IRD(Implementation Row Descriptor) handle. Can be retrieved by a call to SQLGetStmtAttr with SQL_ATTR_IMP_ROW_DESC statment attribute
44
44
45
45
*RecNumber*
46
-
[Input]Should be set to 0
46
+
[Input] 0
47
47
48
48
*FieldIdentifier*
49
-
[Input]Should be set to SQL_CA_SS_DATA_CLASSIFICATION
49
+
[Input] SQL_CA_SS_DATA_CLASSIFICATION
50
50
51
51
*ValuePtr*
52
52
[Output] Output buffer
@@ -55,16 +55,18 @@ SQLRETURN SQLGetDescField(
55
55
[Input] Length of output buffer in bytes
56
56
57
57
*StringLengthPtr*
58
-
[Output] Pointer to the buffer in which to return the total number of bytes (excluding the number of bytes required for the null-termination character) available to return in *ValuePtr.
58
+
[Output] Pointer to the buffer in which to return the total number of bytes available to return in *ValuePtr.
59
59
60
-
Note: If the size of the buffer is unknown it can be determined by calling SQLGetDescField with *ValuePtr* as NULL and examining the value of *StringLengthPtr*.
60
+
Note: If the size of the buffer is unknown, it can be determined by calling SQLGetDescField with *ValuePtr* as NULL and examining the value of *StringLengthPtr*.
61
61
62
62
If Data Classification information is not available, an *Invalid Descriptor Field* error will be returned.
63
63
64
-
Upon successful call to SQLGetDescField the *ValuePtr* will contain the following data:
64
+
Upon a successful call to SQLGetDescField, the buffer pointed to by*ValuePtr* will contain the following data:
65
65
66
66
`nn nn [n sensitivitylabels] tt tt [t informationtypes] cc cc [c columnsensitivitys]`
67
67
68
+
Note: `nn nn`, `tt tt`, and `cc cc` are multibyte integers which are stored with the least significant byte at the lowest address.
69
+
68
70
*sensitivitylabel* and *informationtype* are both of the form
69
71
70
72
`nn [n bytes name] ii [i bytes id]`
@@ -73,14 +75,17 @@ Upon successful call to SQLGetDescField the *ValuePtr* will contain the followin
73
75
74
76
`nn nn [n sensitivityprops]`
75
77
76
-
For each column (c), n 4-byte 7*sensitivityprops* are present:
78
+
For each column *(c)*, *n* 4-byte *sensitivityprops* are present:
77
79
78
80
`ss ss tt tt`
79
81
80
82
s - index into the *sensitivitylabels* array, FF FF if not labeled
83
+
81
84
t - index into the *informationtypes* array, FF FF if not labeled
82
85
83
-
Data can expressed using the following structs:
86
+
87
+
<br><br>
88
+
The format of the data can be expressed as the following pseudo-structures:
0 commit comments