BUG: Function dbcursorfetch Fails with Error 221Last reviewed: April 29, 1997Article ID: Q108685 |
The information in this article applies to:
SYMPTOMSWhen calling DB-Library function dbcursorfetch with the FETCH_NEXT option in a medium-model MS-DOS application, the function call fails, generating error 221:
Column of type (%s) does not allow nulls. It may not be compared with null. CAUSEWhen building the query to perform the cursor fetch, DB-Library is incorrectly attempting to compare a NOT NULL column with the value NULL.
WORKAROUNDFor MS-DOS programs, use the large-model DB-Library. The function dbcursorfetch behaves correctly on other operating systems.
STATUSMicrosoft has confirmed this to be a problem in DB-Library version 4.20.50. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: db-lib dblib cursors
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |