From 961f38fc2c8752c58c6ab85846bb99466b7d7066 Mon Sep 17 00:00:00 2001 From: Lyn Elisa Goltz Date: Wed, 7 Dec 2022 09:25:26 +0100 Subject: [PATCH] #15 - fixed table name in cretae index statement --- .../deegree/feature/persistence/sql/ddl/PostGISDDLCreator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;