Skip to content

Commit 747ca34

Browse files
author
v-makouz
authored
Some more corrections
1 parent eb1c316 commit 747ca34

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

docs/connect/odbc/data-classification.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ SQLRETURN SQLGetDescField(
4343
[Input] IRD(Implementation Row Descriptor) handle. Can be retrieved by a call to SQLGetStmtAttr with SQL_ATTR_IMP_ROW_DESC statment attribute
4444

4545
*RecNumber*
46-
[Input] Should be set to 0
46+
[Input] 0
4747

4848
*FieldIdentifier*
49-
[Input] Should be set to SQL_CA_SS_DATA_CLASSIFICATION
49+
[Input] SQL_CA_SS_DATA_CLASSIFICATION
5050

5151
*ValuePtr*
5252
[Output] Output buffer
@@ -55,16 +55,18 @@ SQLRETURN SQLGetDescField(
5555
[Input] Length of output buffer in bytes
5656

5757
*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.
5959

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*.
6161

6262
If Data Classification information is not available, an *Invalid Descriptor Field* error will be returned.
6363

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:
6565

6666
`nn nn [n sensitivitylabels] tt tt [t informationtypes] cc cc [c columnsensitivitys]`
6767

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+
6870
*sensitivitylabel* and *informationtype* are both of the form
6971

7072
`nn [n bytes name] ii [i bytes id]`
@@ -73,14 +75,17 @@ Upon successful call to SQLGetDescField the *ValuePtr* will contain the followin
7375

7476
`nn nn [n sensitivityprops]`
7577

76-
For each column (c), n 4-byte 7 *sensitivityprops* are present:
78+
For each column *(c)*, *n* 4-byte *sensitivityprops* are present:
7779

7880
`ss ss tt tt`
7981

8082
s - index into the *sensitivitylabels* array, FF FF if not labeled
83+
8184
t - index into the *informationtypes* array, FF FF if not labeled
8285

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:
8489

8590
```
8691
struct IDnamePair {

0 commit comments

Comments
 (0)