Re: problem with calling c functions

Поиск
Список
Период
Сортировка
От Richard Harvey Chapman
Тема Re: problem with calling c functions
Дата
Msg-id Pine.LNX.4.10.10009211726440.3383-100000@smile.3gfp.com
обсуждение исходный текст
Ответ на problem with calling c functions  (Richard Harvey Chapman <hchapman@3gfp.com>)
Ответы Re: problem with calling c functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
oops, got a little trigger-happy with the send button.

Question: Why isn't 12 printed after the second SELECT statement?

Thanks,

R.

On Thu, 21 Sep 2000, Richard Harvey Chapman wrote:

> 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
Дата:
Сообщение: problem with calling c functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Resolved! (was: Re[8]: WTF is going on with PG_VERSION?)