BUG: Calling IDBInfo::GetKeywords() Causes AV with OLE DB Provider for ODBC (MSDASQL)

ID: Q235515


The information in this article applies to:


SYMPTOMS

ODBC drivers that return keywords outside the range of Absolute to Zone cause an access violation in the Microsoft OLEDB Provider for ODBC (MSDASQL) when the IDBInfo::GetKeywords() method is called.


CAUSE

This occurs because of a code problem in the binary search algorithm used by MSDASQL.


RESOLUTION

To work around this behavior, modify the driver so that it does not return keywords outside the range Absolute - Zone.

For example, if the driver returns the keyword Abort, the Microsoft OLEDB Provider for ODBC (MSDASQL) gets an access violation.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

You can find the default list of Reserved Keywords in the ODBC Programmer's Reference, Volume 2. The default keywords range from ABSOLUTE to ZONE.

Additional query words:


Keywords          : kbODBC kbOLEDB 
Version           : WINDOWS:3.5,3.51,3.6,3.7
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: July 22, 1999