Function | Argument Name | Current Description | Corrected Description |
---|
SQLBrowseConnect | StringLength1 | Length of *InConnectionString. | Length of *InConnectionString, in characters. |
| BufferLength | Length of the *OutConnectionString buffer. | Length of the *OutConnectionString buffer, in characters. |
| StringLength2Ptr | The total number of bytes (excluding the null-termination byte) available to return in *OutConnectionString. | The total number of characters (excluding the null-termination character) available to return in *OutConnectionString. |
SQLColAttribute | BufferLength | If FieldIdentifier is an ODBC-defined field and CharacterAttributePtr points to a character string or binary buffer, this argument should be the length of *CharacterAttributePtr. If FieldIdentifier is an ODBC-defined field and *CharacterAttributePtr is an integer, this field is ignored. If the *CharacterAttributePtr is a Unicode string (when calling SQLColAttributeW), the BufferLength argument must be an even number | This is correct. BufferLength refers to the number of bytes available for the value in CharacterAttributePtr. |
| StringLengthPtr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte for character data) available to return in *CharacterAttributePtr. | This is correct. |
SQLColAttributes | This function as been deprecated to SQLColAttribute (see above). | | |
SQLColumnPrivileges | NameLength1-4 | Length of *CatalogName. (Note here that there are four different arguments that contain length values. Each one refers to a different input or output buffer, such as CatalogName, SchemaName, TableName, and ColumnName. For simplicity, for any functions with similar input values, this tables combines all such NameLength arguments, rather than listing each one separately.) | Length of *CatalogName, in characters. |
SQLColumns | NameLength1-4 | Length of *CatalogName. | Length of *CatalogName, in characters. |
SQLConnect | NameLength1-3 | Length of *ServerName. | Length of *ServerName, in characters. |
SQLDataSources | BufferLength1 | Length of the *ServerName buffer, in bytes. | Length of the *ServerName buffer, in characters. |
| NameLength1Ptr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte). | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character). |
| BufferLength2 | Length of the *Description buffer. | Length of the *Description buffer, in characters. |
| NameLength2Ptr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *Description. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *Description. |
SQLDescribeCol | BufferLength | Length of the *ColumnName buffer, in characters. | This is correct. |
| NameLengthPtr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *ColumnName. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *ColumnName. |
SQLDriverConnect | StringLength1 | Length of *InConnectionString, in bytes. | Length of *InConnectionString, in characters. |
| BufferLength | Length of the *OutConnectionString buffer. If the *OutConnectionString value is a Unicode string (when calling SQLDriverConnectW), the BufferLength argument must be an even number. | Length of the *OutConnectionString buffer, in characters. (Note that this means this argument does NOT have to be an even number.) |
| StringLength2Ptr | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *OutConnectionString. | This is correct. |
SQLDrivers | BufferLength1 | Length of the *DriverDescription buffer, in bytes. | Length of the *DriverDescription buffer, in characters. |
| DescriptionLengthPtr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *DriverDescription. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *DriverDescription. |
| BufferLength2 | Length of the *DriverAttributes buffer, in bytes. If the *DriverDescription value is a Unicode string (when calling SQLDriversW), the BufferLength argument must be an even number. | Length of the *DriverAttributes buffer, in characters. (Note that this means this argument does NOT have to be an even number.) |
| AttributesLengthPtr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *DriverAttributes. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *DriverAttributes. |
SQLError | This function has been deprecated to SQLGetDiagRec. | | |
SQLExecDirect | TextLength | Length of *StatementText. | Length of *StatementText, in characters. |
SQLForeignKeys | NameLength1-2 | Length of *PKCatalogName, in bytes. | Length of *PKCatalogName, in characters. |
| NameLength3-6 | Length of *PKTableName. | Length of *PKTableName, in characters. |
SQLGetConnectAttr | BufferLength | If the value in *ValuePtr is a Unicode string (when calling SQLGetConnectAttrW), the BufferLength argument must be an even number. | This is correct. BufferLength should contain a count of bytes. |
| StringLengthPtr | A pointer to a buffer in which to return the total number of bytes (excluding the null-termination character) available to return in *ValuePtr. | This is correct. |
SQLGetConnectOption | This function has been deprecated to SQLGetConnectAttr. | | |
SQLGetCursorName | BufferLength | Length of *CursorName, in bytes. If the value in *CursorName is a Unicode string (when calling SQLGetCursorNameW), the BufferLength argument must be an even number. | Length of *CursorName, in characters. (Note that this means this argument does NOT have to be an even number.) |
| NameLengthPtr | Pointer to memory in which to return the total number of bytes (excluding the null-termination character) available to return in *CursorName. | Pointer to memory in which to return the total number of characters (excluding the null-termination character) available to return in *CursorName. |
SQLGetDescField | BufferLength | If the value in *ValuePtr is of a Unicode data type (when calling SQLGetDescFieldW), the BufferLength argument must be an even number. | This is correct. BufferLength should contain a count of bytes. |
| StringLengthPtr | 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. | This is correct. |
SQLGetDescRec | BufferLength | Length of the *Name buffer, in bytes. | Length of the *Name buffer, in characters. |
| StringLengthPtr | A pointer to a buffer in which to return the number of bytes of data available to return in the *Name buffer, excluding the null-termination character. | A pointer to a buffer in which to return the number of characters available to return in the *Name buffer, excluding the null-termination character. |
SQLGetDiagField | BufferLength | If the value in *DiagInfoPtr is a Unicode string (when calling SQLGetDiagFieldW), the BufferLength argument must be an even number. | This is correct. BufferLength should contain a count of bytes. |
| StringLengthPtr | Pointer to a 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 *DiagInfoPtr, for character data. | This is correct. |
SQLGetDiagRec | BufferLength | Length of the *MessageText buffer in characters. | This is correct |
| TextLengthPtr | Pointer to a 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 *MessageText. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *MessageText. |
SQLGetInfo | BufferLength | Length of the *InfoValuePtr buffer. If *InfoValuePtr is a Unicode string (when calling SQLGetInfoW), the BufferLength argument must be an even number. | This is correct. BufferLength should contain a count of bytes. |
| StringLengthPtr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination character for character data) available to return in *InfoValuePtr. | This is correct. |
SQLGetStmtAttr | BufferLength | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. If the value returned in *ValuePtr is a Unicode string (when calling SQLGetStmtAttrW), the BufferLength argument must be an even number | This is correct. BufferLength should contain a count of bytes. |
| StringLengthPtr | A pointer to a buffer in which to return the total number of bytes (excluding the null-termination character) available to return in *ValuePtr. | This is correct. |
SQLNativeSQL | TextLength1 | Length of *InStatementText text string. | Length of *InStatementText text string, in characters. |
| BufferLength | Length of the *OutStatementText buffer. If the value returned in *InStatementText is a Unicode string (when calling SQLNativeSqlW), the BufferLength argument must be an even number. | Length of the *OutStatementText buffer, in characters. (Note that this means this argument does NOT have to be an even number.) |
| TextLength2Ptr | Pointer to a buffer in which to return the total number of bytes (excluding the null-termination byte) available to return in *OutStatementText. | Pointer to a buffer in which to return the total number of characters (excluding the null-termination character) available to return in *OutStatementText. |
SQLPrepare | TextLength | Length of *StatementText. | Length of *StatementText, in characters. |
SQLPrimaryKeys | NameLength1-3 | Length in bytes of *CatalogName. | Length of *CatalogName, in characters. |
SQLProcedureColumns | NameLength1-4 | Length of *CatalogName. | Length of *CatalogName, in characters. |
SQLProcedures | NameLength1-3 | Length in bytes of *CatalogName. | Length of *CatalogName, in characters. |
SQLSetConnectAttr | StringLength | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. For character string data, this argument should contain the number of bytes in the string. |
SQLSetConnectOption | This function has been deprecated to SQLSetConnectAttr. | | |
SQLSetCursorName | NameLength | Length of *CursorName. | Length of *CursorName, in characters. |
SQLSetDescField | BufferLength | If FieldIdentifier is an ODBC-defined field and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. | If FieldIdentifier is an ODBC-defined field and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. For character string data, this argument should contain the number of bytes in the string. |
SQLSetStmtAttr | StringLength | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. | If Attribute is an ODBC-defined attribute and ValuePtr points to a character string or a binary buffer, this argument should be the length of *ValuePtr. For character string data, this argument should contain the number of bytes in the string. |
SQLSpecialColumns | NameLength1-3 | Length of *TableName. | Length of *TableName, in characters. |
SQLStatistics | NameLength1-3 | Length of *CatalogName. | Length of *CatalogName, in characters. |
SQLTablePrivileges | NameLength1-3 | Length of *CatalogName. | Length of *CatalogName, in characters. |
SQLTables | NameLength1-4 | Length of *CatalogName. | Length of *CatalogName, in characters. |