[DBD::Pg 3/3] Return bigint values as plain integer values when they fit
[email protected] Wed, 8 Apr 2015 23:21:47 +0000
| Newsgroups | perl.dbd.pg.changes |
|---|---|
| Message-ID | <[email protected]> |
Committed by =?UTF-8?q?Dagfinn=20Ilmari=20Manns=C3=A5ker?= <[email protected]> Subject: [DBD::Pg 3/3] Return bigint values as plain integer values when they fit --- Changes | 3 +++ dbdimp.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Changes b/Changes index f6a19e9..5dd0280 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,9 @@ - Fix enum value ordering on Postgres servers 9.1 and greater [Dagfinn Ilmari Mannsåker] + - Return bigint values as plain integer values when they fit + [Dagfinn Ilmari Mannsåker] + Version 3.5.1 Released February 17, 2015 (git commit 6c3457ee20c19ae492d29c490af6800e7e6a0774) - Prevent core dump if the second argument to the quote() method diff --git a/dbdimp.c b/dbdimp.c index 92a102c..e4710b8 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -3716,6 +3716,9 @@ AV * dbd_st_fetch (SV * sth, imp_sth_t * imp_sth) break; case PG_INT4: case PG_INT2: +#if IVSIZE >= 8 && LONGSIZE >= 8 + case PG_INT8: +#endif sv_setiv(sv, atol((char *)value)); break; default: -- 1.8.4