| От | Daniel Verite |
|---|---|
| Тема | Re: [NOOB] try tu put a number with pqexecprepare |
| Дата | |
| Msg-id | bce3a367-b0cc-406e-8d40-2e8cdd8a0eea@mm обсуждение исходный текст |
| Ответ на | [NOOB] try tu put a number with pqexecprepare (elekis <elekis@gmail.com>) |
| Ответы |
Re: [NOOB] try tu put a number with pqexecprepare
|
| Список | pgsql-general |
elekis wrote: > I put the code here > > http://pastebin.com/m1860cc27 > > > I symply try to put the number 5 for the second column, and after that > read the line. > > > but the database, I have taht > 83886080 in place of 5. 83886080 happens to be ntohl(5), it's probably not a coincidence :) Since you're using binary format for your integer parameters, you must convert them from host byte order to network byte order with htonl() and conversely use ntohl() for results. Best regards, -- Daniel PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера