Re: C-Language Functions: VarChar and Text arguments

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: C-Language Functions: VarChar and Text arguments
Дата
Msg-id hpk7tm$dsf$2@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на C-Language Functions: VarChar and Text arguments  (Carel Combrink <s25291930@tuks.co.za>)
Список pgsql-novice
On 2010-04-06, Carel Combrink <s25291930@tuks.co.za> wrote:

> Isn't there an easier way to use the data (text*) in a printf() type
> way, I need to construct a SQL query from the input data and I am
> using the printf() notation and %s only works on zero terminated
> strings.

???

  printf("%.*s",length,char_pointer);



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

Предыдущее
От: Tim Landscheidt
Дата:
Сообщение: Re: How to find object dependencies in PG 8.4
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Read only postgres server