Closed awilfox closed 5 years ago
Try following patch:
diff --git a/t/04misc.t b/t/04misc.t
index 929ba0c..314778e 100644
--- a/t/04misc.t
+++ b/t/04misc.t
@@ -78,25 +78,25 @@ is ( $sth->fetch->[0], 2147483646, $t);
$t = 'Constant PG_MIN_BIGINT returns correct value';
$sth = $dbh->prepare('SELECT ?::bigint');
$sth->execute(PG_MIN_BIGINT);
-is ( $sth->fetch->[0], -9223372036854775808, $t);
+is ( $sth->fetch->[0], '-9223372036854775808', $t);
eval { $sth->execute(PG_MIN_BIGINT-1) };
$dbh->rollback();
like ($@, qr/ERROR/, $t);
$sth->execute(PG_MIN_BIGINT+1);
-is ( $sth->fetch->[0], -9223372036854775807, $t);
+is ( $sth->fetch->[0], '-9223372036854775807', $t);
$t = 'Constant PG_MAX_BIGINT returns correct value';
$sth->execute(PG_MAX_BIGINT);
-is ( $sth->fetch->[0], 9223372036854775807, $t);
+is ( $sth->fetch->[0], '9223372036854775807', $t);
eval { $sth->execute(PG_MAX_BIGINT+1) };
$dbh->rollback();
like ($@, qr/ERROR/, $t);
$sth->execute(PG_MAX_BIGINT-1);
-is ( $sth->fetch->[0], 9223372036854775806, $t);
+is ( $sth->fetch->[0], '9223372036854775806', $t);
$t = 'Constant PG_MIN_SMALLSERIAL returns correct value';
is (PG_MIN_SMALLSERIAL, 1, $t);
Applied in 17f545267297341434caad56c47bf952f62ed2e0
The first bad commit is 5298facba2439139f70e1d7ac39116a669b701ce:
After 112ddc37994c09e8b7cf9496c6ff8b05b6a9bba5, the error changes to:
Changing it to use bignums, the error changes to test failures: