Re: libpq, PQExecParams and the inserting of binary data

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: libpq, PQExecParams and the inserting of binary data
Дата
Msg-id 20050604153734.8397528@uruguay
обсуждение исходный текст
Ответ на Re: libpq, PQExecParams and the inserting of binary data  (Volkan YAZICI <volkan.yazici@gmail.com>)
Ответы Re: libpq, PQExecParams and the inserting of binary data
Список pgsql-interfaces
    Volkan YAZICI wrote:

> res = PQexecParams(conn, command, nParams, paramTypes, paramValues, 
>                 paramLengths, paramFormats, resultFormat); 
[...]
> Above code is working well for me. But while trying some other
> combinations (out of NULL usage) for PQexecParams parameters, I
> realized that when we use "const int paramFormats[] = {1};" execution
> dumps SegFault:

Are you passing a NULL pointer in paramLengths? You need to
pass an array containing the actual length of your binary data.

-- DanielPostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org



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

Предыдущее
От: Volkan YAZICI
Дата:
Сообщение: Re: libpq, PQExecParams and the inserting of binary data
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: libpq, PQExecParams and the inserting of binary data