[#2267] SQLDialectNotSupportedException: Type class
org.postgis.PGgeometry is not supported in dialect null, when binding PG* objects - Added INTERVAL test
This commit is contained in:
parent
892f492630
commit
6f7982fceb
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user