Output complex SQL operators as text not symbols

This commit is contained in:
Tobie Morgan Hitchcock 2021-05-17 18:00:50 +01:00
parent 92e9f17ade
commit bf9ceaf693

View file

@ -78,15 +78,15 @@ impl fmt::Display for Operator {
Operator::MoreThan => write!(f, ">"),
Operator::MoreThanOrEqual => write!(f, ">="),
Operator::Contain => write!(f, "CONTAINS"),
Operator::NotContain => write!(f, ""),
Operator::ContainAll => write!(f, ""),
Operator::ContainSome => write!(f, ""),
Operator::ContainNone => write!(f, ""),
Operator::NotContain => write!(f, "CONTAINS NOT"),
Operator::ContainAll => write!(f, "CONTAINS ALL"),
Operator::ContainSome => write!(f, "CONTAINS SOME"),
Operator::ContainNone => write!(f, "CONTAINS NONE"),
Operator::Inside => write!(f, "INSIDE"),
Operator::NotInside => write!(f, ""),
Operator::AllInside => write!(f, ""),
Operator::SomeInside => write!(f, ""),
Operator::NoneInside => write!(f, ""),
Operator::NotInside => write!(f, "NOT INSIDE"),
Operator::AllInside => write!(f, "ALL INSIDE"),
Operator::SomeInside => write!(f, "SOME INSIDE"),
Operator::NoneInside => write!(f, "NONE INSIDE"),
Operator::Intersects => write!(f, "INTERSECTS"),
}
}