Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.2.M0
-
Component/s: jdbc-postgis plugin
-
Labels:None
Description
The createSchema() function of the PostgisDataStore doesn't work. First it checks to see if the table to be created is not already present, but then it asks the FIDMapper for the table's PKs.
The org.geotools.data.jdbc.fidmapper.getPkColumnInfo() throws a SchemaNotFoundException that cause the createSchema() to fail.
A solution would be to return a new ColumnInfo[0] instead, so that the
buildNoPKMapper() function would be called.
The problem is that FeatureType and AttributeType have no notion of PKs, so how can the buildNoPKMapper() function knows which fields are Pks???
I have a fixed version of PostgisDataStore (albeit it's not general enough to be used as is). Where and how can I submit it???
Bye
Paolo Rizzi
Issue Links
- relates to
-
GEOT-379
PostgisFIDMapperFactory should be configurable
-