changeset 146:967dc552455d

Enable backend to delete users artifacts/trunk@1371 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 02 Mar 2011 17:47:54 +0000
parents c0d025df722d
children 9a64e0c1c737
files artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");
                 }
 

http://dive4elements.wald.intevation.org