[Schmitzm-commits] r1635 - trunk/schmitzm-core/src/main/java/de/schmitzm/geotools/postgres
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 21 11:27:26 CEST 2011
Author: alfonx
Date: 2011-07-21 11:27:26 +0200 (Thu, 21 Jul 2011)
New Revision: 1635
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/geotools/postgres/PGUtil.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/geotools/postgres/PGUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/geotools/postgres/PGUtil.java 2011-07-21 09:13:27 UTC (rev 1634)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/geotools/postgres/PGUtil.java 2011-07-21 09:27:26 UTC (rev 1635)
@@ -70,6 +70,14 @@
+ " FROM " + targetRole;
c.createStatement().executeUpdate(sql);
}
+
+ /**
+ * Erstellt eine neue Rolle ohne besondere Starteigenschaften.
+ */
+ public void createRole(Connection c, String rolename) throws SQLException {
+ String sql = "CREATE ROLE " + rolename;
+ c.createStatement().executeUpdate(sql);
+ }
/**
* Querys the <code>geometry_columns</code> table is part of every POSTGIS installation and must/should describe the
More information about the Schmitzm-commits
mailing list