Re: libpq and prepared statements progress for 8.0

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq and prepared statements progress for 8.0
Дата
Msg-id 11547.1095692570@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq and prepared statements progress for 8.0  (Abhijit Menon-Sen <ams@oryx.com>)
Ответы Re: libpq and prepared statements progress for 8.0  (Abhijit Menon-Sen <ams@oryx.com>)
Список pgsql-hackers
Abhijit Menon-Sen <ams@oryx.com> writes:
>> PGresult *
>> PQprepare(PGconn *conn,
>>           const char *stmtName,
>>           const char *query,
>>           int nParams,
>>           const Oid *paramTypes);

> Should I go ahead and do that?

(1) What about preparing an unnamed statement ... will you allow
stmtName = NULL to mean that?  (Actually it might be that stmtName = ""
will cover this, I'm too lazy to check the backend code right now.)
You do need to allow access to the unnamed statement because of 
Oliver Jowett's recent efficiency hacks.

(2) What about discovering the actually resolved parameter types?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: No parameters support in "create user"?
Следующее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0