| От | Peter Eisentraut |
|---|---|
| Тема | Re: Getting Text data as C string |
| Дата | |
| Msg-id | 200703121358.20418.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Getting Text data as C string (Denis Gasparin <denis@edistar.com>) |
| Ответы |
Re: Getting Text data as C string
|
| Список | pgsql-general |
Am Montag, 12. März 2007 12:47 schrieb Denis Gasparin: > I wrote a simple c stored procedure that accepts only one text parameter > that i want to convert to a c string. > The problem is that i obtain the C string correctly but with spurious > characters at the end... I use these calls to obtain the c string: The data in a text datum is not null terminated. You need to call the function textout() to convert. Grep the source code for examples of invoking it. -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера