diff --git a/deegree-datastores/deegree-featurestores/deegree-featurestore-sql/src/main/java/org/deegree/feature/persistence/sql/ddl/PostGISDDLCreator.java b/deegree-datastores/deegree-featurestores/deegree-featurestore-sql/src/main/java/org/deegree/feature/persistence/sql/ddl/PostGISDDLCreator.java index c4f1b41a12..438872a59e 100644 --- a/deegree-datastores/deegree-featurestores/deegree-featurestore-sql/src/main/java/org/deegree/feature/persistence/sql/ddl/PostGISDDLCreator.java +++ b/deegree-datastores/deegree-featurestores/deegree-featurestore-sql/src/main/java/org/deegree/feature/persistence/sql/ddl/PostGISDDLCreator.java @@ -134,7 +134,7 @@ private List getGeometryCreate( GeometryMapping mapping, DBField d StringBuffer indexSql = new StringBuffer( "CREATE INDEX " ); String idxName = createIdxName( table.getTable(), column ); indexSql.append( idxName ); - indexSql.append( " ON " ).append( currentFtTable ); + indexSql.append( " ON " ).append( table.getTable().toLowerCase() ); indexSql.append( " USING GIST (" ). append( column ).append( " ); " ); ddls.add( indexSql ); return ddls;