Commits

Anonymous committed 3c7baf3 Merge

Merge branch 'cassandra-1.2' into trunk

Comments (0)

Files changed (1)

src/java/org/apache/cassandra/cql3/statements/DeleteStatement.java

         boolean isRange = cfDef.isCompact ? !fullKey : (!fullKey || toRemove.isEmpty());
 
         if (!toRemove.isEmpty() && isRange)
-            throw new InvalidRequestException(String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.iterator().next().columnName));
+            throw new InvalidRequestException(String.format("Missing mandatory PRIMARY KEY part %s since %s specified", firstEmpty, toRemove.get(0).columnName));
 
         Set<ByteBuffer> toRead = null;
         for (Operation op : toRemove)