You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This operator is a fundamental comparator in ZomboDB:
#[pg_extern(immutable, parallel_safe)]fnanyelement_cmpfunc(element:AnyElement,query:ZDBQuery,fcinfo: pg_sys::FunctionCallInfo,) -> bool{let(query_desc, query_state) = matchget_executor_manager().peek_query_state(){Some((query_desc, query_state)) => (query_desc, query_state),None => returnfalse,};let index_oid = match query_state.lookup_index_for_first_field(*query_desc, fcinfo){Some(oid) => oid,None => returnfalse,};let tid = if element.oid() == pg_sys::TIDOID{// use the ItemPointerData passed into us as the first argumentSome(item_pointer_to_u64(unsafe{ pg_sys::ItemPointerData::from_datum(element.datum(), element.oid())}.unwrap(),))}else{panic!("The '==>' operator could not find a \"USING zombodb\" index that matches the left-hand-side of the expression");};match tid {Some(tid) => unsafe{pg_func_extra(fcinfo, || do_seqscan(query, index_oid)).contains(&tid)},None => false,}}
This operator is a fundamental comparator in ZomboDB:
This was broken by #532.
The text was updated successfully, but these errors were encountered: