problem with calling c functions

Поиск
Список
Период
Сортировка
От Richard Harvey Chapman
Тема problem with calling c functions
Дата
Msg-id Pine.LNX.4.10.10009211719270.3383-100000@smile.3gfp.com
обсуждение исходный текст
Ответы Re: problem with calling c functions  (Richard Harvey Chapman <hchapman@3gfp.com>)
Список pgsql-general
I'll just show an example:

I have:

int myfunc (text *a, text* b)
{
 return(12);
}

in psql:

test=# CREATE FUNCTION myfunc(text, text)
test-# RETURNS integer
test-# AS
'/home/hchapman/src/nms/wwp_database/c-functions/call_dynamic.so'
test-# LANGUAGE 'C';
CREATE
test=# SELECT myfunc('aa','ss') as result;
 result
--------
     12
(1 row)

test=# SELECT myfunc('aa',NULL) as result;
 result
--------

(1 row)

test=#


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

Предыдущее
От: Richard Harvey Chapman
Дата:
Сообщение: RE: problem with CREATE FUNCTION
Следующее
От: Richard Harvey Chapman
Дата:
Сообщение: Re: problem with calling c functions