Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion supabase-wrappers/src/qual.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ pub(crate) unsafe fn extract_from_op_expr(

// get operator
let opno = (*expr).opno;
let opr = get_operator(opno);
let mut opr = get_operator(opno);
if opr.is_null() {
report_warning("operator is empty");
return None;
Expand All @@ -205,6 +205,7 @@ pub(crate) unsafe fn extract_from_op_expr(
&& !is_a(left, pg_sys::NodeTag::T_Var)
&& (*opr).oprcom != Oid::INVALID
{
opr = get_operator((*opr).oprcom);
std::mem::swap(&mut left, &mut right);
}

Expand Down