Kbase P186850: Using direct ODBC API calls to bind variables to columns causes "number of bound columns exceeds the
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  29/04/2011 |
|
Status: Unverified
SYMPTOM(s):
Application calling ODBC driver using ODBC API
Application is binding columns based on the result of calling the SQLPrimaryKeysW API function
Application is creating bindings for column numbers 3, 4, 5, 6, 7 and 8
Application receives error stating "number of bound columns exceeds the number of result columns"
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.2B
CAUSE:
The error is accurate because the SQLPrimaryKeysW API function only returns 6 columns, not eight.
FIX:
Modify the application code so that it binds to column numbers 1 through 6 instead of 3 through 8