Here we go, hacks abound.
DataType<Object> geometry = new DefaultDataType<>(
SQLDialect.POSTGRES, SQLDataType.OTHER, "geometry");
f.insertInto(TRACK_POSITION, TRACK_POSITION.GEOM_POS)
.values(cast(PGgeomPoint.toString(), geometry))
.execute();
- Executing query : insert into "public"."track_position"
("geom_pos") values (cast(? as geometry))
- -> with bind values : insert into "public"."track_position"
("geom_pos") values (cast('SRID=4326;POINT(0 0)' as geometry))
This is what I end up doing to insert PostGIS points until PGobjects can be
inserted again.
--
Pete
--
You received this message because you are subscribed to the Google Groups "jOOQ
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.