user defined types and strings

Поиск
Список
Период
Сортировка
От Kjetil Haaland
Тема user defined types and strings
Дата
Msg-id 200502231401.36646.kjetil.haaland@student.uib.no
обсуждение исходный текст
Ответы Re: user defined types and strings  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
Hi

I have made a user defined type which has a string of variable length and and
an integer value. Since the string is of variable length i have used a
pointer for the string. When i use this type as a column in a table and
inserts values into it, the string will go away. I understand that this is
because i am pointing to a place in memory for the string, and that this wont
last for a very long time. So i am wondering how i am supposed to use strings
in a user defined type so they will be saved in the database when the type is
inserted in a table?

-Kjetil

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

Предыдущее
От: Mester József
Дата:
Сообщение: Can Clipper connect Postgresql
Следующее
От: Frank Bax
Дата:
Сообщение: Re: Can Clipper connect Postgresql