Check that numeric is zero - Mailing list pgsql-general

From Gabriel Furstenheim Milerud
Subject Check that numeric is zero
Date
Msg-id CAJN3DWquY5P6X_mZEr4xCx7exJceJv6JxLCCgTX__imnxafuWg@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi,
I'm writing a Postgres native extension and I would like to check that a numeric is zero.

My problem is that all exported methods like numeric_eq or numeric_sign require me to have a numeric to start with, and const_zero is not exported in numeric.c.

Any idea how to check it?

Thanks
Gabriel Fürstenheim 

pgsql-general by date:

Previous
From: Marc Millas
Date:
Subject: Re: Death postgres
Next
From: Adrian Klaver
Date:
Subject: Re: Death postgres