[Schmitzm-commits] r1798 - trunk/schmitzm-core/src/main/java/de/schmitzm/postgres

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Nov 28 14:11:30 CET 2011


Author: alfonx
Date: 2011-11-28 14:11:29 +0100 (Mon, 28 Nov 2011)
New Revision: 1798

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
Log:
Indexerstellung erkennt Tablespae "null" als null.

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java	2011-11-27 00:45:49 UTC (rev 1797)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java	2011-11-28 13:11:29 UTC (rev 1798)
@@ -464,7 +464,7 @@
 		if (fillFactor != null)
 			sqlFillFactor = " WITH (FILLFACTOR=" + (int) (fillFactor * 100) + ") ";
 
-		String sqlTableSpace = tablespace == null ? "" : " TABLESPACE " + tablespace;
+		String sqlTableSpace = (tablespace == null || tablespace.equalsIgnoreCase("null")) ? "" : " TABLESPACE " + tablespace;
 
 		String sqlUsing = type == null ? "" : " USING " + type;
 



More information about the Schmitzm-commits mailing list