This ODBC function returns one of the following SQLSTATE values:Ĭharacter string data was right-truncated
ODBC EXCEL DRIVER INVALID USE OF NULL DRIVER
For any other data type, the value of BufferLength is ignored, in which case the driver assumes that the size of *InfoValuePtr is either SQLUSMALLINT or SQLUINTEGER based on InfoType. Importantįor character string data, if this length (in bytes) is greater than the value of BufferLength without the length of the null terminating character, the character string stored in *InfoValuePtr is truncated to the length (in bytes) equivalent to BufferLength without the null terminating character, and then the null terminating character is added at the end. This length does not include the null terminating character. Specifies a pointer to the buffer that returns the total valid length (in bytes) to be returned to *InfoValuePtr. If the buffer is too small, operation is not guaranteed. If the value of InfoValuPtr is not a character string, the HADB ODBC driver assumes that the size of *InfoValuePtr is either SQLUSMALLINT or SQLUINTEGER based on InfoType. If the *InfoValuePtr value is not a character string or InfoValuePtr is a null pointer, this argument is ignored. This length includes the null terminating character. Specifies the length (in bytes) of the *InfoValuePtr buffer. If a specifiable information type is specified for InfoType but that information type is not supported, the function might return the null character string or zero. The function returns the information for the requested InfoType. Specifies a pointer to the buffer in which the information is to be returned. For details about the types of information that can be specified, see 16.13 Information types that can be specified for InfoType in SQLGetInfo and SQLGetInfoW.