PgSQL ODBC, ADO and output parameters

Поиск
Список
Период
Сортировка
От john m langdon
Тема PgSQL ODBC, ADO and output parameters
Дата
Msg-id BAY102-F9B7D113CBDA431E73B5B7F25D0@phx.gbl
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: psqlOdbc Ansi + BDE issues
Следующее
От: "Tobias Britz"
Дата:
Сообщение: Visual Studio 2005 not happy with postgresql