/*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2005, PostgreSQL Global Development Group
*
* IDENTIFICATION
*   $PostgreSQL: pgjdbc/org/postgresql/util/PGInterval.java,v 1.4 2004/11/09 08:57:30 jurka Exp $
*
*-------------------------------------------------------------------------
*/
package org.postgresql.util;

import java.io.Serializable;

public class PGInterval extends PGobject implements Serializable, Cloneable
{
    public PGInterval()
    {
        setType("interval");
    }
    public PGInterval(String value )
    {
        this.value = value;
    }

    /*
     * This must be overidden to allow the object to be cloned
     */
    public Object clone()
    {
        return new PGInterval( value );
    }
}

@@ -221,29 +221,29 @@
 v 1.
-4
+5
  200
-4/11/09 08:57:30
+5/01/11 08:25:49
  jur
@@ -569,32 +569,61 @@
 g value )%0A    %7B%0A
+        setType(%22interval%22);%0A
         this.val

Fix the PGInterval(String) ctor to correctly set the object's postgresql type. Reported by Jean-Pierre Pelletier.