Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!

Поиск
Список
Период
Сортировка
От Taral
Тема Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Дата
Msg-id 99021317445301.11018@taral.dobiecenter.com
обсуждение исходный текст
Ответ на (libpq question) Holy cow, what's all this fluff?!  (Matthew Hagerty <matthew@venux.net>)
Список pgsql-interfaces
On Sat, 13 Feb 1999, Matthew Hagerty wrote:
>Greetings,
>
>When using the PQgetvalue() function of libpq, the results, at least char
>fields, return the value in full, i.e. a char(20) field with the text
>"Matthew" for example returns "Matthew             " (all 20 characters,
>padded with spaces).

You want a varchar (or is it bpchar?), not a char. char(x) will always return x
characters, with space padding if necessary.

Taral

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

Предыдущее
От: David Ford
Дата:
Сообщение: Re: [INTERFACES] (libpq question) Holy cow, what's all this fluff?!
Следующее
От: Michael Davis
Дата:
Сообщение: Access 97 and datatypes