comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DatabaseCleaner.java @ 238:61b7041204a7

Fix for flys/issue8 (part 2) artifacts/trunk@1651 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 06 Apr 2011 21:12:58 +0000
parents 202b6ae2fcad
children 4253995c970e
comparison
equal deleted inserted replaced
237:23ec48ce717e 238:61b7041204a7
234 234
235 Set<Integer> lockedIds = lockedIdsProvider != null 235 Set<Integer> lockedIds = lockedIdsProvider != null
236 ? lockedIdsProvider.getLockedIds() 236 ? lockedIdsProvider.getLockedIds()
237 : EMPTY_IDS; 237 : EMPTY_IDS;
238 238
239 String questionMarks = StringUtils.repeat('?', lockedIds.size(), ','); 239 String questionMarks = lockedIds.isEmpty()
240 ? "NULL"
241 : StringUtils.repeat('?', lockedIds.size(), ',');
240 242
241 try { 243 try {
242 connection = dataSource.getConnection(); 244 connection = dataSource.getConnection();
243 connection.setAutoCommit(false); 245 connection.setAutoCommit(false);
244 246

http://dive4elements.wald.intevation.org