[HACKERS] converting numeric to string in postgres code

2013-05-28 Thread Szymon Guz
Hi, while hacking on some Postgres code I've found a problem. I need to convert numeric to string. I've got datum with numeric inside, so I'm getting it like: Numeric *numeric = DatumGetNumeric(d); but later I need to have string (most probably: const char *). I've found a couple of different

Re: [HACKERS] converting numeric to string in postgres code

2013-05-28 Thread Pavel Stehule
Hello 2013/5/28 Szymon Guz mabew...@gmail.com: Hi, while hacking on some Postgres code I've found a problem. I need to convert numeric to string. I've got datum with numeric inside, so I'm getting it like: Numeric *numeric = DatumGetNumeric(d); but later I need to have string (most

Re: [HACKERS] converting numeric to string in postgres code

2013-05-28 Thread Szymon Guz
On 28 May 2013 12:07, Pavel Stehule pavel.steh...@gmail.com wrote: Hello 2013/5/28 Szymon Guz mabew...@gmail.com: Hi, while hacking on some Postgres code I've found a problem. I need to convert numeric to string. I've got datum with numeric inside, so I'm getting it like: