--- main/plugin-core/src/org/ametys/runtime/plugins/core/group/jdbc/ModifiableJdbcGroupsManager.java 2012-10-17 13:15:14.000000000 +0400 +++ main/plugin-core/src/org/ametys/runtime/plugins/core/group/jdbc/ModifiableJdbcGroupsManager.java 2013-07-07 08:55:08.000000000 +0400 @@ -447,6 +447,15 @@ id = rs.getString(1); } } + else if (DatabaseType.DATABASE_HSQLDB.equals(ConnectionHelper.getDatabaseType(connection))) + { + statement = connection.prepareStatement("CALL IDENTITY()"); + rs = statement.executeQuery(); + if (rs.next()) + { + id = rs.getString(1); + } + } else if (DatabaseType.DATABASE_POSTGRES.equals(ConnectionHelper.getDatabaseType(connection))) { statement = connection.prepareStatement("SELECT currval('groups_id_seq')");