Re: How to insert values with a new type ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to insert values with a new type ?
Дата
Msg-id 25093.982598940@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to insert values with a new type ?  (Ines.Klimann@liafa.jussieu.fr)
Список pgsql-sql
Ines.Klimann@liafa.jussieu.fr writes:
> complexe * complex_in(float x, float y)
> {
>   complexe *result;

>   result = (complexe *)palloc(sizeof(complexe));       
>   result->x = x;
>   result->y = y;

>   return (result);
> }

A datatype's input routine has to accept a string (char *).
        regards, tom lane


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