Re: newbie libpq question...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: newbie libpq question...
Дата
Msg-id 11698.1099955851@sss.pgh.pa.us
обсуждение исходный текст
Ответ на newbie libpq question...  (Doug Homoelle <homoelle@ll.mit.edu>)
Ответы Re: newbie libpq question...  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Список pgsql-interfaces
Doug Homoelle <homoelle@ll.mit.edu> writes:
>         res = PQexec(conn, "select blah blah blah");
>         test_int=PQntuples(res);
>         fprintf(stdout,"number of rows: %f\n",test_int);
>         test_int=PQnfields(res);
>         fprintf(stdout,"number of cols: %f\n",test_int);

If test_int is an integer, you want %d or %i in the format, not %f ...
        regards, tom lane


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

Предыдущее
От: Doug Homoelle
Дата:
Сообщение: newbie libpq question...
Следующее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: newbie libpq question...