PQexecParams not seeing params

Поиск
Список
Период
Сортировка
От Paul Forgey
Тема PQexecParams not seeing params
Дата
Msg-id 862A81E4-B946-45E8-B3AF-81F6BD2BC623@aphrodite.com
обсуждение исходный текст
Ответы Re: PQexecParams not seeing params
Список pgsql-interfaces
I am using the libpq client library from 8.1.4 in an application that  
is intended to be compatible with databases hosted on both 7.4 and  
8.1.  At least when talking to a 7.4 server, the following statement:

res = PQexecParams (pgc, "FETCH 100 $1", 1, NULL, paramValues, NULL,  
NULL, 1)

results in "syntax error at or near $1 at character 11".

The documentation says the parameters are referred to in the command  
string as $n.  Is this not always the case?  What am I missing?

since PQexecParams was present in 7.4 I am assuming the server has  
the sufficient protocol level to support it.



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Matteo Traina
Дата:
Сообщение: jdbc windows
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PQexecParams not seeing params