changeset 318:2ed77f7e1bab

Swapped SQL parameter indices when fetching collection name. artifacts/trunk@2455 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 02 Aug 2011 14:13:20 +0000
parents 824051dff018
children 61017c6031b8
files ChangeLog artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Aug 02 14:05:34 2011 +0000
+++ b/ChangeLog	Tue Aug 02 14:13:20 2011 +0000
@@ -1,3 +1,8 @@
+2011-08-02	Sascha L. Teichmann	<teichmann@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
+	  Swapped SQL parameter indices when fetching collection name.
+
 2011-08-02	Sascha L. Teichmann	<teichmann@intevation.de>
 
 	* artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java:
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Tue Aug 02 14:05:34 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Tue Aug 02 14:13:20 2011 +0000
@@ -1762,8 +1762,8 @@
                 while (result.next()) {
                     String userId         = result.getString(1);
                     String collectionId   = result.getString(2);
-                    String artifactId     = result.getString(3);
-                    String collectionName = result.getString(4);
+                    String collectionName = result.getString(3);
+                    String artifactId     = result.getString(4);
                     String factoryName    = result.getString(5);
 
                     Artifact artifact = alreadyLoaded.get(artifactId);

http://dive4elements.wald.intevation.org