Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 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 | b46c5b13ac94 |
comparison
equal
deleted
inserted
replaced
317:824051dff018 | 318:2ed77f7e1bab |
---|---|
1760 prepareStatement(SQL_ALL_ARTIFACTS); | 1760 prepareStatement(SQL_ALL_ARTIFACTS); |
1761 result = stmnt.executeQuery(); | 1761 result = stmnt.executeQuery(); |
1762 while (result.next()) { | 1762 while (result.next()) { |
1763 String userId = result.getString(1); | 1763 String userId = result.getString(1); |
1764 String collectionId = result.getString(2); | 1764 String collectionId = result.getString(2); |
1765 String artifactId = result.getString(3); | 1765 String collectionName = result.getString(3); |
1766 String collectionName = result.getString(4); | 1766 String artifactId = result.getString(4); |
1767 String factoryName = result.getString(5); | 1767 String factoryName = result.getString(5); |
1768 | 1768 |
1769 Artifact artifact = alreadyLoaded.get(artifactId); | 1769 Artifact artifact = alreadyLoaded.get(artifactId); |
1770 | 1770 |
1771 if (artifact != null) { | 1771 if (artifact != null) { |