Re: [HACKERS] converting datum to numeric

2013-06-25 Thread Szymon Guz
On 25 June 2013 08:51, Pavel Stehule wrote: > Hello > > 2013/6/25 Szymon Guz : > > Hi, > > I've got a couple of questions. > > > > I was using numeric_out like this: > > > > DatumGetCString(DirectFunctionCall1(numeric_out, d)); > > > > Why do I have to use DirectFunctionCall1 instead of calling n

Re: [HACKERS] converting datum to numeric

2013-06-24 Thread Pavel Stehule
Hello 2013/6/25 Szymon Guz : > Hi, > I've got a couple of questions. > > I was using numeric_out like this: > > DatumGetCString(DirectFunctionCall1(numeric_out, d)); > > Why do I have to use DirectFunctionCall1 instead of calling numeric_out? numeric_out functions doesn't use C calling convention

[HACKERS] converting datum to numeric

2013-06-24 Thread Szymon Guz
Hi, I've got a couple of questions. I was using numeric_out like this: DatumGetCString(DirectFunctionCall1(numeric_out, d)); Why do I have to use DirectFunctionCall1 instead of calling numeric_out? I was suggested to use numeric_send instead of numeric_out, however when changing the function n