0
jhat OQL where 절에서 [AND]를 사용하는 방법? 내가 그들의 canonicaldn에 appTrust을 포함하는 모든 X500Names를 찾으려면 - 이것도jhat OQL AND where where 절
select s from sun.security.x509.X500Name s where s.canonicalDn !=null and
/tiberium/(s.canonicalDn.toString())
을 :
나는이 작업을 수행 할 수 있습니다. canonicaldn 중 일부는 null이 될 수 있으므로 null 체크가 필요합니다. [jhat는 toString에서 null 포인터 예외를 throw합니다.]
"and"는 리터럴로 작동하지 않습니다.
BTW, 나는 나의 목적을 사용하여 필터 기능을 위해이 문제를 가지고 :
select filter(heap.objects("sun.security.x509.X500Name"), isTiberium);
function isTiberium(s) {
return s.canonicalDn !=null && /tiberium/(s.canonicalDn.toString());
}