comparison artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java @ 193:949d69ad3756

Fixed issue with outdating an artifact if it is removed from a collection. artifacts/trunk@1423 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 08 Mar 2011 10:13:45 +0000
parents a85d889a1b0d
children fde2f193e846
comparison
equal deleted inserted replaced
192:dad6071c9072 193:949d69ad3756
1319 1319
1320 // outdate artifact iff it is only in this collection 1320 // outdate artifact iff it is only in this collection
1321 prepareStatement(SQL_COLLECTION_ITEM_OUTDATE_ARTIFACT); 1321 prepareStatement(SQL_COLLECTION_ITEM_OUTDATE_ARTIFACT);
1322 stmnt.setInt(1, aid); 1322 stmnt.setInt(1, aid);
1323 stmnt.setInt(2, cid); 1323 stmnt.setInt(2, cid);
1324 stmnt.setInt(3, cid);
1324 stmnt.execute(); 1325 stmnt.execute();
1325 reset(); 1326 reset();
1326 1327
1327 // delete collection item 1328 // delete collection item
1328 prepareStatement(SQL_COLLECTION_ITEM_DELETE); 1329 prepareStatement(SQL_COLLECTION_ITEM_DELETE);

http://dive4elements.wald.intevation.org