| От | creid |
|---|---|
| Тема | LIBPQ Question |
| Дата | |
| Msg-id | ILECJKPFOLBAGINIFFFBMECECAAA.creid@netbcg.com обсуждение |
| Ответы |
Re: LIBPQ Question
Re: LIBPQ Question |
| Список | pgsql-interfaces |
Problem: Assigning a COUNT(*) result into an integer variable in my C program consistently fails except when I assign the same result to a char variable. I can only assume that the internal data type the COUNT function uses is integer. Can anyone help put me in the proper mindset so I may deal with this, seemingly simple issue, to resolution. I need the integer result to to help me satisfy a dynamic memory requirement... COUNT(*) result will tell me how many rows of data I need to malloc and I cannot perform a math operation on a char variable. Thanks Cliff
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера