Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# hpqtypes-1.14.1.0
# hpqtypes-1.14.1.0 (????-??-??)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will the date be set in a separate commit?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

* Introduce From/ToSQL instances for Word16, Word32 and Word64.
* Add support for (de)serialization of `Integer` to/from `numeric`.

# hpqtypes-1.14.0.0 (2025-12-10)
* Make `begin`, `commit` and `rollback` do nothing instead of throwing an error
Expand Down
13 changes: 13 additions & 0 deletions libpqtypes/src/libpqtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,19 @@ typedef float PGfloat4;
typedef double PGfloat8;
typedef char *PGnumeric;

#define NUMERIC_POS 0x0000
#define NUMERIC_NEG 0x4000
#define NUMERIC_NAN 0xC000

typedef struct
{
short ndigits; /* # of digits in digits[] - can be 0! */
short weight; /* weight of first digit */
short sign; /* NUMERIC_POS, NUMERIC_NEG, or NUMERIC_NAN */
short dscale; /* display scale */
const short *digits; /* base-NBASE digits in network byte order */
} NumericVar;

/* Defined by an end-user if the system is missing long long. */
#ifdef PQT_LONG_LONG
typedef PQT_LONG_LONG PGint8;
Expand Down
Loading
Loading