diff --git a/jOOQ-test/src/org/jooq/test/PostgresTest.java b/jOOQ-test/src/org/jooq/test/PostgresTest.java index cc364a0eb0..a7b9f5e76b 100644 --- a/jOOQ-test/src/org/jooq/test/PostgresTest.java +++ b/jOOQ-test/src/org/jooq/test/PostgresTest.java @@ -116,6 +116,7 @@ import org.jooq.util.postgres.PostgresDataType; import org.junit.Test; import org.postgis.PGgeometry; import org.postgis.Point; +import org.postgresql.util.PGInterval; /** @@ -869,12 +870,18 @@ public class PostgresTest extends jOOQAbstractTest< point.setSrid(4326); PGgeometry geometry = new PGgeometry(point); + PGInterval interval = new PGInterval(1, 2, 3, 4, 5, 6); + TPgExtensionsRecord r1 = create().newRecord(T_PG_EXTENSIONS); r1.setPgGeometry(geometry); + r1.setPgInterval(interval); assertEquals(1, r1.store()); assertEquals(1, (int) create().selectCount().from(T_PG_EXTENSIONS).fetchOne(0, int.class)); TPgExtensionsRecord r2 = create().selectFrom(T_PG_EXTENSIONS).fetchOne(); assertEquals(r1, r2); + + assertEquals(geometry, r2.getPgGeometry()); + assertEquals(interval, r2.getPgInterval()); } }