[libpostgresql-jdbc-java] 06/10: Interval formatting didn't work for negative seconds values greater than -1. It would format it as -.5, but interval input doesn't accept this, so write it as -0.5 instead.
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:20:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to tag REL8_1_409
in repository libpostgresql-jdbc-java.
commit b362fe2f3fd9f493afc13e654dd2b7c18d0cf02b
Author: Kris Jurka <books at ejurka.com>
Date: Wed Apr 11 06:54:46 2007 +0000
Interval formatting didn't work for negative seconds values greater
than -1. It would format it as -.5, but interval input doesn't
accept this, so write it as -0.5 instead.
---
org/postgresql/util/PGInterval.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/org/postgresql/util/PGInterval.java b/org/postgresql/util/PGInterval.java
index b30262b..41f5b7f 100644
--- a/org/postgresql/util/PGInterval.java
+++ b/org/postgresql/util/PGInterval.java
@@ -3,7 +3,7 @@
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
-* $PostgreSQL: pgjdbc/org/postgresql/util/PGInterval.java,v 1.9 2005/09/29 21:42:31 jurka Exp $
+* $PostgreSQL: pgjdbc/org/postgresql/util/PGInterval.java,v 1.10 2005/11/01 21:29:31 jurka Exp $
*
*-------------------------------------------------------------------------
*/
@@ -32,7 +32,7 @@ public class PGInterval extends PGobject implements Serializable, Cloneable
private final static DecimalFormat secondsFormat;
static {
- secondsFormat = new DecimalFormat("#.00####");
+ secondsFormat = new DecimalFormat("0.00####");
DecimalFormatSymbols dfs = secondsFormat.getDecimalFormatSymbols();
dfs.setDecimalSeparator('.');
secondsFormat.setDecimalFormatSymbols(dfs);
@@ -40,7 +40,7 @@ public class PGInterval extends PGobject implements Serializable, Cloneable
/**
- * reuired by the driver
+ * required by the driver
*/
public PGInterval()
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git
More information about the pkg-java-commits
mailing list