Re: Default and PQexecParams

Поиск
Список
Период
Сортировка
От ljb
Тема Re: Default and PQexecParams
Дата
Msg-id dmg9p3$28up$1@news.hub.org
обсуждение исходный текст
Ответ на Default and PQexecParams  (Jerry LeVan <jerry.levan@eku.edu>)
Список pgsql-general
jerry.levan@eku.edu wrote:
> Hi,
>
> How could one differentiate between DEFAULT and 'DEFAULT' as parameters
> to PQexecuteParams?

I assume you mean the libpq function PQexecParams(), and you want to use a
parameterized query for INSERT or UPDATE.

I don't think it is possible to use DEFAULT because it is a keyword,
and only a value expression will work as a parameter.

With NULL vs 'NULL', PQexecParams() has a special case to handle NULL
(null pointer in the paramValues array).

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

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Installation trouble
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Getting "cannot remove lock from HTAB" during VACUUM FULL