postgis-java icon indicating copy to clipboard operation
postgis-java copied to clipboard

Empty with geomFromString and typed columns cause exceptions

Open tobias- opened this issue 4 years ago • 2 comments

I've added a PR with a couple of failing test cases ( #86 ) that details this problem.

The problems were discovered due to a line in the following format: prep.setObject(6, new PGgeometryLW(GeometryBuilder.geomFromString("SRID=4326;MULTIPOLYGON EMPTY"))); which, when combined with "type-safe" columns (ie <column> geometry(MultiPolygon, 4326) NOT NULL) caused the driver to throw exceptions.

tobias- avatar Oct 20 '20 15:10 tobias-

The PR now includes our solution to the problem.

tobias- avatar Oct 22 '20 09:10 tobias-

Thanks for submitting the issue and PR and apologies for not being able to review it sooner. I've not had the opportunity to review it yet but will get to as soon as possible. Thanks again!

phillipross avatar Dec 01 '20 22:12 phillipross