v1.8.46
- fix Wrapper: If the condition is null, there is a where bug in front of the ORDER BY statement
- fix Wrapper: trim inaccurate
- Wrapper change do_math method. for example:
#[test]
fn test_do_match() {
let p = 1;
let w = Wrapper::new(&DriverType::Postgres)
.do_match(&[
(p == 0, |w| w.eq("0", "some")),
(p == 1, |w| w.eq("1", "some")),
], |w| w.eq("default", "default"))
.check().unwrap();
assert_eq!(&w.sql,"1 = $1");
}