# HG changeset patch # User Sascha L. Teichmann # Date 1299088074 0 # Node ID 967dc552455d6417a6594ada04de18cfec598543 # Parent c0d025df722d8621b3ab7aa4f07a6d504b6acb6e Enable backend to delete users artifacts/trunk@1371 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r c0d025df722d -r 967dc552455d artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java --- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Wed Mar 02 17:47:20 2011 +0000 +++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java Wed Mar 02 17:47:54 2011 +0000 @@ -837,7 +837,7 @@ result = stmnt_next_id.executeQuery(); - if (!res_id.next()) { + if (!result.next()) { throw new RuntimeException("No id generated"); }