Right, I saw that test case. So under what circumstances would statement.getLimit() != null be true? I think it'd be good to capture the cases we're currently not handling in code comments and in JIRAs.