PgSQL ODBC, ADO and output parameters - Mailing list pgsql-odbc

From john m langdon
Subject PgSQL ODBC, ADO and output parameters
Date
Msg-id BAY102-F9B7D113CBDA431E73B5B7F25D0@phx.gbl
Whole thread Raw
List pgsql-odbc
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?



pgsql-odbc by date:

Previous
From: "Merlin Moncure"
Date:
Subject: Re: psqlOdbc Ansi + BDE issues
Next
From: "Tobias Britz"
Date:
Subject: Visual Studio 2005 not happy with postgresql