Thread: PgSQL ODBC, ADO and output parameters

PgSQL ODBC, ADO and output parameters

From
"john m langdon"
Date:
Hi

I have tried using the 'OUT' parameters for functions in Version 8.1 with
Visual Basic 6, ADO and the PGSQL ODBC driver Version 8.01.

I have a function with one OUT parameter declared in my database, and when I
try and connect to it in VB using this parameter definition I get an error
in Visual Basic:

Run-time error '-2147467259'

The VB code:

    Set myADOParamter = myADOCommand.CreateParameter("f1", adInteger,
adParamOutput)

From the PostGreSQL ODBC log file:

DESCRIPTOR ERROR: func=PGAPI_SetDescField, desc='', errnum=11, errmsg='bad
parameter number'
STATEMENT ERROR: func=copy_statement_with_parameters, desc='', errnum=10,
errmsg='Output parameter isn't available'

Does anyone know what is going on here?