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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Sep 25 13:10:28 CEST 2011


Author: alfonx
Date: 2011-09-25 13:10:28 +0200 (Sun, 25 Sep 2011)
New Revision: 1733

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
Log:


Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java	2011-09-25 10:56:57 UTC (rev 1732)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/postgres/PGUtil.java	2011-09-25 11:10:28 UTC (rev 1733)
@@ -444,8 +444,8 @@
 		Statement s = c.createStatement();
 
 		final String queryString = "CREATE " + (unique ? "UNIQUE " : "") + "INDEX " + idxName + " ON " + tableName
-				+ " (" + columns + ") " + (tablespace == null ? "" : " TABLESPACE " + tablespace)
-				+ (type == null ? "" : " USING  " + type);
+				+ (type == null ? "" : " USING " + type) + " (" + columns + ") "
+				+ (tablespace == null ? "" : " TABLESPACE " + tablespace);
 		try {
 			s.execute(queryString);
 			c.commit();



More information about the Schmitzm-commits mailing list