github rbatis/rbatis v1.8.46

latest releases: v4.5.21, v4.5.20, v4.5.19...
3 years ago

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");
    }

Don't miss a new rbatis release

NewReleases is sending notifications on new releases.