Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

This article was previously published under Q235515

↑ Back to the top


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) that ships with Microsoft Data Access Components (MDAC) 2.0 and 2.1 when the IDBInfo::GetKeywords() method is called.

↑ Back to the top


Cause

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

↑ Back to the top


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.

↑ Back to the top


Status

This has been fixed as of MDAC 2.5.

↑ Back to the top


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.

↑ Back to the top


Keywords: kbbug, kbfix, kbmdac250fix, kbmdacnosweep, KB235515

↑ Back to the top

Article Info
Article ID : 235515
Revision : 2
Created on : 6/12/2001
Published on : 6/12/2001
Exists online : False
Views : 467