From b265e43dddd10f6a7ba1e02d1039d1ce781781ce Mon Sep 17 00:00:00 2001 From: Toby Hede Date: Wed, 3 Jun 2026 20:57:29 +1000 Subject: [PATCH 1/2] refactor(tests): generalise scalar matrix harness off integer-inherent consts Make the SQLx scalar-matrix harness type-agnostic ahead of the first non-integer scalar, without adding one. Three integer assumptions are lifted: - `ScalarType::FIXTURE_VALUES` (a `const`) becomes `fn fixture_values()`, so a scalar whose values can't be const-constructed can return a borrow of a lazily-built `Vec` instead. Integer impls still hand back their `eql_scalars::_VALUES` const. - New `min_pivot()` / `max_pivot()` trait methods replace the matrix's direct `::MIN` / `::MAX` pivot references, so a scalar without an inherent `::MIN`/`::MAX` const can supply an explicit sentinel. - The ORDER BY arms build their `WHERE` clause from `to_sql_literal(zero)` instead of a hardcoded `> 0`, so a non-integer plaintext column typechecks. Behaviour-preserving for the existing `int4` / `int2` types: the integer `min_pivot`/`max_pivot` resolve to `Self::MIN`/`Self::MAX`, `to_sql_literal(0)` renders `0`, and the generated test names are unchanged. The int4 cargo-expand snapshot is regenerated to track the method-based bodies. --- crates/eql-tests-macros/src/lib.rs | 26 +- tests/sqlx/snapshots/int4_expanded.rs | 1860 +++++++++-------- tests/sqlx/src/matrix.rs | 78 +- tests/sqlx/src/scalar_domains.rs | 38 +- .../encrypted_domain/family/mutations.rs | 4 +- 5 files changed, 1080 insertions(+), 926 deletions(-) diff --git a/crates/eql-tests-macros/src/lib.rs b/crates/eql-tests-macros/src/lib.rs index 537a8312..408648ae 100644 --- a/crates/eql-tests-macros/src/lib.rs +++ b/crates/eql-tests-macros/src/lib.rs @@ -85,10 +85,26 @@ fn scalar_type_impls_tokens(list: &ScalarList) -> TokenStream2 { quote! { impl ScalarType for #rust_type { const PG_TYPE: &'static str = #token_str; + /// The catalog `eql_scalars::*_VALUES` list — the same values /// the fixture generator encrypts, so the oracle can't drift - /// from the fixture. - const FIXTURE_VALUES: &'static [#rust_type] = ::eql_scalars::#values; + /// from the fixture. A method (not a `const`) so non-integer + /// scalars whose values can't be `const`-constructed can return + /// a borrow of a lazily-built `Vec`; integer scalars hand back + /// their catalog const directly. + fn fixture_values() -> &'static [#rust_type] { + ::eql_scalars::#values + } + + /// Integer scalars pivot on their inherent `MIN`/`MAX` consts; + /// the fixture lists include both (`fixtures!(int …; Min, …, Max)`). + fn min_pivot() -> #rust_type { + <#rust_type>::MIN + } + + fn max_pivot() -> #rust_type { + <#rust_type>::MAX + } } } }); @@ -249,6 +265,12 @@ mod tests { assert!(out.contains(r#"const PG_TYPE : & 'static str = "int8""#)); assert!(out.contains(":: eql_scalars :: INT4_VALUES")); assert!(out.contains(":: eql_scalars :: INT8_VALUES")); + // const→fn: fixture values is a method now, plus the integer pivots. + assert!(out.contains("fn fixture_values")); + assert!(out.contains("fn min_pivot")); + assert!(out.contains("fn max_pivot")); + assert!(out.contains("MIN")); + assert!(out.contains("MAX")); } #[test] diff --git a/tests/sqlx/snapshots/int4_expanded.rs b/tests/sqlx/snapshots/int4_expanded.rs index 3441b01b..f2997d2a 100644 --- a/tests/sqlx/snapshots/int4_expanded.rs +++ b/tests/sqlx/snapshots/int4_expanded.rs @@ -1,11 +1,5 @@ +///`eql_v2_int4` matrix suite — generated by `scalar_types!`. pub mod int4 { - //! `eql_v2_int4` — the reference scalar implementation. - //! - //! Adding a new ordered numeric scalar (i64, f64, date, ...) is one - //! `impl ScalarType` in `tests/sqlx/src/scalar_domains.rs` plus an - //! `ordered_numeric_matrix!` invocation like this one. The matrix covers - //! everything generic over `T: ScalarType`. - use eql_tests::ordered_numeric_matrix; extern crate test; #[rustc_test_marker = "scalars::int4::matrix_int4_storage_sanity"] #[doc(hidden)] @@ -14,10 +8,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_sanity"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 451usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 454usize, start_col: 26usize, - end_line: 451usize, + end_line: 454usize, end_col: 60usize, compile_fail: false, no_run: false, @@ -91,10 +85,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_sanity"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 451usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 454usize, start_col: 26usize, - end_line: 451usize, + end_line: 454usize, end_col: 60usize, compile_fail: false, no_run: false, @@ -168,10 +162,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_sanity"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 451usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 454usize, start_col: 26usize, - end_line: 451usize, + end_line: 454usize, end_col: 60usize, compile_fail: false, no_run: false, @@ -245,10 +239,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_ore_sanity"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 451usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 454usize, start_col: 26usize, - end_line: 451usize, + end_line: 454usize, end_col: 60usize, compile_fail: false, no_run: false, @@ -324,10 +318,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -347,7 +341,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -423,10 +417,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -446,7 +440,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -522,10 +516,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -621,10 +615,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -644,7 +638,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -720,10 +714,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -743,7 +737,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -819,10 +813,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -918,10 +912,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -941,7 +935,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1017,10 +1011,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1040,7 +1034,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1116,10 +1110,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1215,10 +1209,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1238,7 +1232,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1314,10 +1308,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1337,7 +1331,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1413,10 +1407,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1512,10 +1506,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1535,7 +1529,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1611,10 +1605,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1634,7 +1628,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1710,10 +1704,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1809,10 +1803,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1832,7 +1826,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -1908,10 +1902,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -1931,7 +1925,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2007,10 +2001,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2106,10 +2100,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2129,7 +2123,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2205,10 +2199,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2228,7 +2222,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2304,10 +2298,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2403,10 +2397,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2426,7 +2420,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2502,10 +2496,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2525,7 +2519,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2601,10 +2595,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2700,10 +2694,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2723,7 +2717,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2799,10 +2793,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2822,7 +2816,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -2898,10 +2892,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -2997,10 +2991,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3020,7 +3014,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3096,10 +3090,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3119,7 +3113,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3195,10 +3189,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3294,10 +3288,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3317,7 +3311,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3393,10 +3387,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3416,7 +3410,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3492,10 +3486,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3591,10 +3585,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3614,7 +3608,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3690,10 +3684,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3713,7 +3707,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3789,10 +3783,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3888,10 +3882,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -3911,7 +3905,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -3987,10 +3981,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4010,7 +4004,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -4086,10 +4080,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4185,10 +4179,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4208,7 +4202,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -4284,10 +4278,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4307,7 +4301,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -4383,10 +4377,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 587usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 590usize, start_col: 22usize, - end_line: 587usize, + end_line: 590usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4482,10 +4476,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4505,7 +4499,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -4648,10 +4642,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4671,7 +4665,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -4814,10 +4808,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -4980,10 +4974,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5003,7 +4997,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -5146,10 +5140,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5169,7 +5163,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Eq); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -5312,10 +5306,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5478,10 +5472,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5501,7 +5495,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -5644,10 +5638,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5667,7 +5661,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -5810,10 +5804,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5976,10 +5970,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -5999,7 +5993,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -6142,10 +6136,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6165,7 +6159,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -6308,10 +6302,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6474,10 +6468,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6497,7 +6491,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -6640,10 +6634,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6663,7 +6657,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -6806,10 +6800,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6972,10 +6966,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -6995,7 +6989,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -7138,10 +7132,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7161,7 +7155,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -7304,10 +7298,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7470,10 +7464,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7493,7 +7487,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -7636,10 +7630,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7659,7 +7653,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -7802,10 +7796,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7968,10 +7962,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -7991,7 +7985,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -8134,10 +8128,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8157,7 +8151,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -8300,10 +8294,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8466,10 +8460,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8489,7 +8483,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -8632,10 +8626,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8655,7 +8649,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -8798,10 +8792,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8964,10 +8958,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -8987,7 +8981,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -9130,10 +9124,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9153,7 +9147,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -9296,10 +9290,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9462,10 +9456,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9485,7 +9479,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -9628,10 +9622,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9651,7 +9645,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -9794,10 +9788,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9960,10 +9954,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -9983,7 +9977,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -10126,10 +10120,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10149,7 +10143,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -10292,10 +10286,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10458,10 +10452,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10481,7 +10475,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -10624,10 +10618,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10647,7 +10641,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -10790,10 +10784,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10956,10 +10950,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -10979,7 +10973,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MIN; + let pivot: i32 = ::min_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -11122,10 +11116,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -11145,7 +11139,7 @@ pub mod int4 { let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let pivot: i32 = ::MAX; + let pivot: i32 = ::max_pivot(); let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -11288,10 +11282,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 628usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 631usize, start_col: 22usize, - end_line: 628usize, + end_line: 631usize, end_col: 96usize, compile_fail: false, no_run: false, @@ -11454,10 +11448,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -11547,10 +11541,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -11640,10 +11634,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -11733,10 +11727,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -11826,10 +11820,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -11919,10 +11913,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12012,10 +12006,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12105,10 +12099,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12198,10 +12192,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12291,10 +12285,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12384,10 +12378,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12477,10 +12471,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12570,10 +12564,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12663,10 +12657,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 680usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 683usize, start_col: 22usize, - end_line: 680usize, + end_line: 683usize, end_col: 79usize, compile_fail: false, no_run: false, @@ -12754,10 +12748,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_eq_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -12889,10 +12883,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_neq_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13024,10 +13018,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_lt_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13159,10 +13153,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_lte_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13294,10 +13288,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_gt_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13429,10 +13423,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_storage_gte_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13566,10 +13560,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13703,10 +13697,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13838,10 +13832,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_lt_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -13971,10 +13965,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_lte_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14104,10 +14098,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_gt_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14237,10 +14231,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_gte_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14370,10 +14364,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_contains_blocker"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14507,10 +14501,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14644,10 +14638,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14781,10 +14775,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -14918,10 +14912,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -15055,10 +15049,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 744usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 747usize, start_col: 22usize, - end_line: 744usize, + end_line: 747usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -15192,10 +15186,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 811usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 814usize, start_col: 22usize, - end_line: 811usize, + end_line: 814usize, end_col: 67usize, compile_fail: false, no_run: false, @@ -15332,10 +15326,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_payload_check"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 811usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 814usize, start_col: 22usize, - end_line: 811usize, + end_line: 814usize, end_col: 67usize, compile_fail: false, no_run: false, @@ -15470,10 +15464,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_payload_check"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 811usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 814usize, start_col: 22usize, - end_line: 811usize, + end_line: 814usize, end_col: 67usize, compile_fail: false, no_run: false, @@ -15612,10 +15606,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 811usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 814usize, start_col: 22usize, - end_line: 811usize, + end_line: 814usize, end_col: 67usize, compile_fail: false, no_run: false, @@ -15754,10 +15748,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 884usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 887usize, start_col: 22usize, - end_line: 884usize, + end_line: 887usize, end_col: 70usize, compile_fail: false, no_run: false, @@ -15855,10 +15849,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_path_op_blockers"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 884usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 887usize, start_col: 22usize, - end_line: 884usize, + end_line: 887usize, end_col: 70usize, compile_fail: false, no_run: false, @@ -15958,10 +15952,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 884usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 887usize, start_col: 22usize, - end_line: 884usize, + end_line: 887usize, end_col: 70usize, compile_fail: false, no_run: false, @@ -16061,10 +16055,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 884usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 887usize, start_col: 22usize, - end_line: 884usize, + end_line: 887usize, end_col: 70usize, compile_fail: false, no_run: false, @@ -16164,10 +16158,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 941usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 944usize, start_col: 22usize, - end_line: 941usize, + end_line: 944usize, end_col: 71usize, compile_fail: false, no_run: false, @@ -16253,10 +16247,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 941usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 944usize, start_col: 22usize, - end_line: 941usize, + end_line: 944usize, end_col: 71usize, compile_fail: false, no_run: false, @@ -16342,10 +16336,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 941usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 944usize, start_col: 22usize, - end_line: 941usize, + end_line: 944usize, end_col: 71usize, compile_fail: false, no_run: false, @@ -16431,10 +16425,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 941usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 944usize, start_col: 22usize, - end_line: 941usize, + end_line: 944usize, end_col: 71usize, compile_fail: false, no_run: false, @@ -16520,10 +16514,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 994usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 997usize, start_col: 22usize, - end_line: 994usize, + end_line: 997usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -16891,10 +16885,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 994usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 997usize, start_col: 22usize, - end_line: 994usize, + end_line: 997usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -17192,10 +17186,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 994usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 997usize, start_col: 22usize, - end_line: 994usize, + end_line: 997usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -17353,10 +17347,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 994usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 997usize, start_col: 22usize, - end_line: 994usize, + end_line: 997usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -17514,10 +17508,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1075usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1078usize, start_col: 22usize, - end_line: 1075usize, + end_line: 1078usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -17549,7 +17543,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (lt.typname = \'{1}\' OR rt.typname = \'{1}\')\n ", + "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (\'{1}\'::regtype = o.oprleft OR \'{1}\'::regtype = o.oprright)\n ", op_list, d, ), @@ -17678,10 +17672,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1075usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1078usize, start_col: 22usize, - end_line: 1075usize, + end_line: 1078usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -17713,7 +17707,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (lt.typname = \'{1}\' OR rt.typname = \'{1}\')\n ", + "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (\'{1}\'::regtype = o.oprleft OR \'{1}\'::regtype = o.oprright)\n ", op_list, d, ), @@ -17842,10 +17836,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1075usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1078usize, start_col: 22usize, - end_line: 1075usize, + end_line: 1078usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -17877,7 +17871,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (lt.typname = \'{1}\' OR rt.typname = \'{1}\')\n ", + "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (\'{1}\'::regtype = o.oprleft OR \'{1}\'::regtype = o.oprright)\n ", op_list, d, ), @@ -18006,10 +18000,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1075usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1078usize, start_col: 22usize, - end_line: 1075usize, + end_line: 1078usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -18041,7 +18035,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (lt.typname = \'{1}\' OR rt.typname = \'{1}\')\n ", + "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (\'{1}\'::regtype = o.oprleft OR \'{1}\'::regtype = o.oprright)\n ", op_list, d, ), @@ -18170,10 +18164,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1075usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1078usize, start_col: 22usize, - end_line: 1075usize, + end_line: 1078usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -18205,7 +18199,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (lt.typname = \'{1}\' OR rt.typname = \'{1}\')\n ", + "\n SELECT o.oprname,\n lt.typname AS lhs,\n rt.typname AS rhs,\n o.oprcom <> 0 AS has_commutator,\n o.oprnegate <> 0 AS has_negator,\n o.oprrest::oid <> 0 AS has_restrict,\n o.oprjoin::oid <> 0 AS has_join\n FROM pg_catalog.pg_operator o\n JOIN pg_catalog.pg_type lt ON lt.oid = o.oprleft\n JOIN pg_catalog.pg_type rt ON rt.oid = o.oprright\n WHERE o.oprname IN ({0})\n AND (\'{1}\'::regtype = o.oprleft OR \'{1}\'::regtype = o.oprright)\n ", op_list, d, ), @@ -18334,10 +18328,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1641usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1644usize, start_col: 22usize, - end_line: 1641usize, + end_line: 1644usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -18395,7 +18389,7 @@ pub mod int4 { format_args!( "CREATE INDEX {2} ON {3} USING {0} ({1}(value))", "btree", - "eql_v2.eq_term", + "eql_v3.eq_term", index, table, ), @@ -18412,7 +18406,7 @@ pub mod int4 { .execute(&mut *tx) .await?; sqlx::query("SET LOCAL enable_seqscan = off").execute(&mut *tx).await?; - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -18508,10 +18502,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1641usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1644usize, start_col: 22usize, - end_line: 1641usize, + end_line: 1644usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -18569,7 +18563,7 @@ pub mod int4 { format_args!( "CREATE INDEX {2} ON {3} USING {0} ({1}(value))", "hash", - "eql_v2.eq_term", + "eql_v3.eq_term", index, table, ), @@ -18586,7 +18580,7 @@ pub mod int4 { .execute(&mut *tx) .await?; sqlx::query("SET LOCAL enable_seqscan = off").execute(&mut *tx).await?; - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -18682,10 +18676,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1641usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1644usize, start_col: 22usize, - end_line: 1641usize, + end_line: 1644usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -18743,7 +18737,7 @@ pub mod int4 { format_args!( "CREATE INDEX {2} ON {3} USING {0} ({1}(value))", "btree", - "eql_v2.ord_term", + "eql_v3.ord_term", index, table, ), @@ -18760,7 +18754,7 @@ pub mod int4 { .execute(&mut *tx) .await?; sqlx::query("SET LOCAL enable_seqscan = off").execute(&mut *tx).await?; - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -18976,10 +18970,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1641usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1644usize, start_col: 22usize, - end_line: 1641usize, + end_line: 1644usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -19037,7 +19031,7 @@ pub mod int4 { format_args!( "CREATE INDEX {2} ON {3} USING {0} ({1}(value))", "btree", - "eql_v2.ord_term", + "eql_v3.ord_term", index, table, ), @@ -19054,7 +19048,7 @@ pub mod int4 { .execute(&mut *tx) .await?; sqlx::query("SET LOCAL enable_seqscan = off").execute(&mut *tx).await?; - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let payload = ::eql_tests::scalar_domains::fetch_fixture_payload::< i32, >(&pool, pivot) @@ -19270,10 +19264,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1263usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1266usize, start_col: 22usize, - end_line: 1263usize, + end_line: 1266usize, end_col: 86usize, compile_fail: false, no_run: false, @@ -19297,7 +19291,7 @@ pub mod int4 { let d = &spec.sql_domain; let table = "matrix_int4_ord_scaledef_btree"; let index = "matrix_int4_ord_scaledef_btree_idx"; - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 2) { return ::anyhow::__private::Err({ let error = ::anyhow::__private::format_err( @@ -19366,7 +19360,7 @@ pub mod int4 { format_args!( "CREATE INDEX {2} ON {3} USING {0} ({1}(value))", "btree", - "eql_v2.ord_term", + "eql_v3.ord_term", index, table, ), @@ -19451,10 +19445,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_fixture_shape"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1341usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1344usize, start_col: 22usize, - end_line: 1341usize, + end_line: 1344usize, end_col: 55usize, compile_fail: false, no_run: false, @@ -19471,7 +19465,7 @@ pub mod int4 { { use ::eql_tests::scalar_domains::ScalarType; let table = ::fixture_table_name(); - let expected: &[i32] = ::FIXTURE_VALUES; + let expected: &[i32] = ::fixture_values(); let n = expected.len() as i64; let count: i64 = sqlx::query_scalar( &::alloc::__export::must_use({ @@ -19706,10 +19700,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1444usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1447usize, start_col: 22usize, - end_line: 1444usize, + end_line: 1447usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -19733,7 +19727,7 @@ pub mod int4 { let table = "matrix_int4_ord_no_hm"; let index = "matrix_int4_ord_no_hm_idx"; let fixture_table = ::fixture_table_name(); - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let pivot_lit = ::to_sql_literal( pivot, ); @@ -19790,7 +19784,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "CREATE INDEX {0} ON {1} USING btree (eql_v2.ord_term(value))", + "CREATE INDEX {0} ON {1} USING btree (eql_v3.ord_term(value))", index, table, ), @@ -19845,7 +19839,7 @@ pub mod int4 { error }); } - let expected_neq = ::FIXTURE_VALUES + let expected_neq = ::fixture_values() .len() as i64 - eq_count; let neq_count: i64 = sqlx::query_scalar( &::alloc::__export::must_use({ @@ -19887,7 +19881,7 @@ pub mod int4 { ) }), index, - "= must engage the eql_v2.ord_term functional btree with no hm", + "= must engage the eql_v3.ord_term functional btree with no hm", ) .await?; tx.commit().await?; @@ -19944,10 +19938,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1444usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1447usize, start_col: 22usize, - end_line: 1444usize, + end_line: 1447usize, end_col: 75usize, compile_fail: false, no_run: false, @@ -19971,7 +19965,7 @@ pub mod int4 { let table = "matrix_int4_ord_ore_no_hm"; let index = "matrix_int4_ord_ore_no_hm_idx"; let fixture_table = ::fixture_table_name(); - let pivot: i32 = ::FIXTURE_VALUES[0]; + let pivot: i32 = ::fixture_values()[0]; let pivot_lit = ::to_sql_literal( pivot, ); @@ -20028,7 +20022,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "CREATE INDEX {0} ON {1} USING btree (eql_v2.ord_term(value))", + "CREATE INDEX {0} ON {1} USING btree (eql_v3.ord_term(value))", index, table, ), @@ -20083,7 +20077,7 @@ pub mod int4 { error }); } - let expected_neq = ::FIXTURE_VALUES + let expected_neq = ::fixture_values() .len() as i64 - eq_count; let neq_count: i64 = sqlx::query_scalar( &::alloc::__export::must_use({ @@ -20125,7 +20119,7 @@ pub mod int4 { ) }), index, - "= must engage the eql_v2.ord_term functional btree with no hm", + "= must engage the eql_v3.ord_term functional btree with no hm", ) .await?; tx.commit().await?; @@ -20182,10 +20176,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1578usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1581usize, start_col: 22usize, - end_line: 1578usize, + end_line: 1581usize, end_col: 69usize, compile_fail: false, no_run: false, @@ -20282,10 +20276,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_aggregate_min"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2087usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2099usize, start_col: 22usize, - end_line: 2087usize, + end_line: 2099usize, end_col: 73usize, compile_fail: false, no_run: false, @@ -20308,7 +20302,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let extremum: i32 = ::FIXTURE_VALUES + let extremum: i32 = ::fixture_values() .iter() .copied() .min() @@ -20331,7 +20325,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(payload::{1})::text FROM {2}", + "SELECT eql_v3.{0}(payload::{1})::text FROM {2}", "min", d, fixture, @@ -20351,7 +20345,7 @@ pub mod int4 { &*right_val, ::core::option::Option::Some( format_args!( - "eql_v2.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", + "eql_v3.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", "min", d, extremum, @@ -20366,7 +20360,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.ord_term(eql_v2.{0}(payload::{1})) = eql_v2.ord_term($1::jsonb::{1}) FROM {2}", + "SELECT eql_v3.ord_term(eql_v3.{0}(payload::{1})) = eql_v3.ord_term($1::jsonb::{1}) FROM {2}", "min", d, fixture, @@ -20383,7 +20377,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.ord_term(eql_v2.{0}({1})) must equal eql_v2.ord_term() for plaintext={2:?}", + "eql_v3.ord_term(eql_v3.{0}({1})) must equal eql_v3.ord_term() for plaintext={2:?}", "min", d, extremum, @@ -20446,10 +20440,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2145usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2157usize, start_col: 22usize, - end_line: 2145usize, + end_line: 2157usize, end_col: 80usize, compile_fail: false, no_run: false, @@ -20487,7 +20481,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM empty_agg", + "SELECT eql_v3.{0}(value)::text FROM empty_agg", "min", ), ) @@ -20501,7 +20495,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "empty rowset to eql_v2.{0} on {1} must return NULL, got {2:?}", + "empty rowset to eql_v3.{0} on {1} must return NULL, got {2:?}", "min", d, result, @@ -20558,10 +20552,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2170usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2182usize, start_col: 22usize, - end_line: 2170usize, + end_line: 2182usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -20585,7 +20579,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(NULL::{1})::text FROM generate_series(1, 3)", + "SELECT eql_v3.{0}(NULL::{1})::text FROM generate_series(1, 3)", "min", d, ), @@ -20600,7 +20594,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "all-NULL input to eql_v2.{0} on {1} must return NULL, got {2:?}; SQL={3}", + "all-NULL input to eql_v3.{0} on {1} must return NULL, got {2:?}; SQL={3}", "min", d, result, @@ -20657,10 +20651,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2196usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2208usize, start_col: 22usize, - end_line: 2196usize, + end_line: 2208usize, end_col: 85usize, compile_fail: false, no_run: false, @@ -20683,7 +20677,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 2) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -20753,7 +20747,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM mixed_null", + "SELECT eql_v3.{0}(value)::text FROM mixed_null", "min", ), ) @@ -20769,7 +20763,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", + "eql_v3.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", "min", "min", expected_plaintext, @@ -20833,10 +20827,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_aggregate_max"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2087usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2099usize, start_col: 22usize, - end_line: 2087usize, + end_line: 2099usize, end_col: 73usize, compile_fail: false, no_run: false, @@ -20859,7 +20853,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let extremum: i32 = ::FIXTURE_VALUES + let extremum: i32 = ::fixture_values() .iter() .copied() .max() @@ -20882,7 +20876,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(payload::{1})::text FROM {2}", + "SELECT eql_v3.{0}(payload::{1})::text FROM {2}", "max", d, fixture, @@ -20902,7 +20896,7 @@ pub mod int4 { &*right_val, ::core::option::Option::Some( format_args!( - "eql_v2.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", + "eql_v3.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", "max", d, extremum, @@ -20917,7 +20911,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.ord_term(eql_v2.{0}(payload::{1})) = eql_v2.ord_term($1::jsonb::{1}) FROM {2}", + "SELECT eql_v3.ord_term(eql_v3.{0}(payload::{1})) = eql_v3.ord_term($1::jsonb::{1}) FROM {2}", "max", d, fixture, @@ -20934,7 +20928,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.ord_term(eql_v2.{0}({1})) must equal eql_v2.ord_term() for plaintext={2:?}", + "eql_v3.ord_term(eql_v3.{0}({1})) must equal eql_v3.ord_term() for plaintext={2:?}", "max", d, extremum, @@ -20997,10 +20991,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2145usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2157usize, start_col: 22usize, - end_line: 2145usize, + end_line: 2157usize, end_col: 80usize, compile_fail: false, no_run: false, @@ -21038,7 +21032,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM empty_agg", + "SELECT eql_v3.{0}(value)::text FROM empty_agg", "max", ), ) @@ -21052,7 +21046,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "empty rowset to eql_v2.{0} on {1} must return NULL, got {2:?}", + "empty rowset to eql_v3.{0} on {1} must return NULL, got {2:?}", "max", d, result, @@ -21109,10 +21103,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2170usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2182usize, start_col: 22usize, - end_line: 2170usize, + end_line: 2182usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -21136,7 +21130,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(NULL::{1})::text FROM generate_series(1, 3)", + "SELECT eql_v3.{0}(NULL::{1})::text FROM generate_series(1, 3)", "max", d, ), @@ -21151,7 +21145,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "all-NULL input to eql_v2.{0} on {1} must return NULL, got {2:?}; SQL={3}", + "all-NULL input to eql_v3.{0} on {1} must return NULL, got {2:?}; SQL={3}", "max", d, result, @@ -21208,10 +21202,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2196usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2208usize, start_col: 22usize, - end_line: 2196usize, + end_line: 2208usize, end_col: 85usize, compile_fail: false, no_run: false, @@ -21234,7 +21228,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 2) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -21304,7 +21298,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM mixed_null", + "SELECT eql_v3.{0}(value)::text FROM mixed_null", "max", ), ) @@ -21320,7 +21314,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", + "eql_v3.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", "max", "max", expected_plaintext, @@ -21386,10 +21380,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2087usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2099usize, start_col: 22usize, - end_line: 2087usize, + end_line: 2099usize, end_col: 73usize, compile_fail: false, no_run: false, @@ -21412,7 +21406,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let extremum: i32 = ::FIXTURE_VALUES + let extremum: i32 = ::fixture_values() .iter() .copied() .min() @@ -21435,7 +21429,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(payload::{1})::text FROM {2}", + "SELECT eql_v3.{0}(payload::{1})::text FROM {2}", "min", d, fixture, @@ -21455,7 +21449,7 @@ pub mod int4 { &*right_val, ::core::option::Option::Some( format_args!( - "eql_v2.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", + "eql_v3.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", "min", d, extremum, @@ -21470,7 +21464,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.ord_term(eql_v2.{0}(payload::{1})) = eql_v2.ord_term($1::jsonb::{1}) FROM {2}", + "SELECT eql_v3.ord_term(eql_v3.{0}(payload::{1})) = eql_v3.ord_term($1::jsonb::{1}) FROM {2}", "min", d, fixture, @@ -21487,7 +21481,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.ord_term(eql_v2.{0}({1})) must equal eql_v2.ord_term() for plaintext={2:?}", + "eql_v3.ord_term(eql_v3.{0}({1})) must equal eql_v3.ord_term() for plaintext={2:?}", "min", d, extremum, @@ -21550,10 +21544,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2145usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2157usize, start_col: 22usize, - end_line: 2145usize, + end_line: 2157usize, end_col: 80usize, compile_fail: false, no_run: false, @@ -21591,7 +21585,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM empty_agg", + "SELECT eql_v3.{0}(value)::text FROM empty_agg", "min", ), ) @@ -21605,7 +21599,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "empty rowset to eql_v2.{0} on {1} must return NULL, got {2:?}", + "empty rowset to eql_v3.{0} on {1} must return NULL, got {2:?}", "min", d, result, @@ -21662,10 +21656,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2170usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2182usize, start_col: 22usize, - end_line: 2170usize, + end_line: 2182usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -21689,7 +21683,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(NULL::{1})::text FROM generate_series(1, 3)", + "SELECT eql_v3.{0}(NULL::{1})::text FROM generate_series(1, 3)", "min", d, ), @@ -21704,7 +21698,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "all-NULL input to eql_v2.{0} on {1} must return NULL, got {2:?}; SQL={3}", + "all-NULL input to eql_v3.{0} on {1} must return NULL, got {2:?}; SQL={3}", "min", d, result, @@ -21761,10 +21755,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2196usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2208usize, start_col: 22usize, - end_line: 2196usize, + end_line: 2208usize, end_col: 85usize, compile_fail: false, no_run: false, @@ -21787,7 +21781,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 2) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -21857,7 +21851,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM mixed_null", + "SELECT eql_v3.{0}(value)::text FROM mixed_null", "min", ), ) @@ -21873,7 +21867,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", + "eql_v3.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", "min", "min", expected_plaintext, @@ -21939,10 +21933,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2087usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2099usize, start_col: 22usize, - end_line: 2087usize, + end_line: 2099usize, end_col: 73usize, compile_fail: false, no_run: false, @@ -21965,7 +21959,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let extremum: i32 = ::FIXTURE_VALUES + let extremum: i32 = ::fixture_values() .iter() .copied() .max() @@ -21988,7 +21982,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(payload::{1})::text FROM {2}", + "SELECT eql_v3.{0}(payload::{1})::text FROM {2}", "max", d, fixture, @@ -22008,7 +22002,7 @@ pub mod int4 { &*right_val, ::core::option::Option::Some( format_args!( - "eql_v2.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", + "eql_v3.{0}({1}) must return the payload of plaintext={2:?} (the fixture {3})", "max", d, extremum, @@ -22023,7 +22017,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.ord_term(eql_v2.{0}(payload::{1})) = eql_v2.ord_term($1::jsonb::{1}) FROM {2}", + "SELECT eql_v3.ord_term(eql_v3.{0}(payload::{1})) = eql_v3.ord_term($1::jsonb::{1}) FROM {2}", "max", d, fixture, @@ -22040,7 +22034,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.ord_term(eql_v2.{0}({1})) must equal eql_v2.ord_term() for plaintext={2:?}", + "eql_v3.ord_term(eql_v3.{0}({1})) must equal eql_v3.ord_term() for plaintext={2:?}", "max", d, extremum, @@ -22103,10 +22097,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2145usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2157usize, start_col: 22usize, - end_line: 2145usize, + end_line: 2157usize, end_col: 80usize, compile_fail: false, no_run: false, @@ -22144,7 +22138,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM empty_agg", + "SELECT eql_v3.{0}(value)::text FROM empty_agg", "max", ), ) @@ -22158,7 +22152,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "empty rowset to eql_v2.{0} on {1} must return NULL, got {2:?}", + "empty rowset to eql_v3.{0} on {1} must return NULL, got {2:?}", "max", d, result, @@ -22215,10 +22209,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2170usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2182usize, start_col: 22usize, - end_line: 2170usize, + end_line: 2182usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -22242,7 +22236,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(NULL::{1})::text FROM generate_series(1, 3)", + "SELECT eql_v3.{0}(NULL::{1})::text FROM generate_series(1, 3)", "max", d, ), @@ -22257,7 +22251,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "all-NULL input to eql_v2.{0} on {1} must return NULL, got {2:?}; SQL={3}", + "all-NULL input to eql_v3.{0} on {1} must return NULL, got {2:?}; SQL={3}", "max", d, result, @@ -22314,10 +22308,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2196usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2208usize, start_col: 22usize, - end_line: 2196usize, + end_line: 2208usize, end_col: 85usize, compile_fail: false, no_run: false, @@ -22340,7 +22334,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 2) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -22410,7 +22404,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value)::text FROM mixed_null", + "SELECT eql_v3.{0}(value)::text FROM mixed_null", "max", ), ) @@ -22426,7 +22420,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", + "eql_v3.{0} on mixed NULL/non-NULL must return the {1} non-NULL value (plaintext={2:?}); want {3:?}, got {4:?}", "max", "max", expected_plaintext, @@ -22492,10 +22486,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2375usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2387usize, start_col: 22usize, - end_line: 2375usize, + end_line: 2387usize, end_col: 82usize, compile_fail: false, no_run: false, @@ -22518,7 +22512,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 5) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -22624,7 +22618,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT group_key, eql_v2.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", + "SELECT group_key, eql_v3.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", "min", ), ) @@ -22652,7 +22646,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 1 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 1 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "min", d, group1_extremum, @@ -22671,7 +22665,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 2 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 2 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "min", d, group2_extremum, @@ -22738,10 +22732,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2375usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2387usize, start_col: 22usize, - end_line: 2375usize, + end_line: 2387usize, end_col: 82usize, compile_fail: false, no_run: false, @@ -22764,7 +22758,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 5) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -22870,7 +22864,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT group_key, eql_v2.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", + "SELECT group_key, eql_v3.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", "max", ), ) @@ -22898,7 +22892,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 1 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 1 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "max", d, group1_extremum, @@ -22917,7 +22911,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 2 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 2 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "max", d, group2_extremum, @@ -22984,10 +22978,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2375usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2387usize, start_col: 22usize, - end_line: 2375usize, + end_line: 2387usize, end_col: 82usize, compile_fail: false, no_run: false, @@ -23010,7 +23004,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 5) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -23116,7 +23110,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT group_key, eql_v2.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", + "SELECT group_key, eql_v3.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", "min", ), ) @@ -23144,7 +23138,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 1 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 1 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "min", d, group1_extremum, @@ -23163,7 +23157,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 2 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 2 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "min", d, group2_extremum, @@ -23230,10 +23224,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2375usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2387usize, start_col: 22usize, - end_line: 2375usize, + end_line: 2387usize, end_col: 82usize, compile_fail: false, no_run: false, @@ -23256,7 +23250,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let values: &[i32] = ::FIXTURE_VALUES; + let values: &[i32] = ::fixture_values(); if ::anyhow::__private::not(values.len() >= 5) { return ::anyhow::__private::Err( ::anyhow::Error::msg( @@ -23362,7 +23356,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT group_key, eql_v2.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", + "SELECT group_key, eql_v3.{0}(value)::text FROM group_test GROUP BY group_key ORDER BY group_key", "max", ), ) @@ -23390,7 +23384,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 1 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 1 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "max", d, group1_extremum, @@ -23409,7 +23403,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "group 2 eql_v2.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", + "group 2 eql_v3.{0}({1}) must yield payload for plaintext={2:?}; want ({3}, {4:?}), got {5:?}", "max", d, group2_extremum, @@ -23476,10 +23470,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2290usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2302usize, start_col: 22usize, - end_line: 2290usize, + end_line: 2302usize, end_col: 77usize, compile_fail: false, no_run: false, @@ -23506,7 +23500,7 @@ pub mod int4 { FROM pg_proc p \ JOIN pg_aggregate a ON a.aggfnoid = p.oid \ WHERE p.proname = $1 \ - AND p.pronamespace = 'eql_v2'::regnamespace \ + AND p.pronamespace = 'eql_v3'::regnamespace \ AND p.proargtypes[0]::regtype = $2::regtype", ) .bind(agg) @@ -23517,7 +23511,7 @@ pub mod int4 { return ::anyhow::__private::Err({ let error = ::anyhow::__private::format_err( format_args!( - "eql_v2.{0}({1}) must be PARALLEL SAFE (proparallel=\'s\'), got {2:?}", + "eql_v3.{0}({1}) must be PARALLEL SAFE (proparallel=\'s\'), got {2:?}", agg, d, proparallel, @@ -23530,7 +23524,7 @@ pub mod int4 { return ::anyhow::__private::Err({ let error = ::anyhow::__private::format_err( format_args!( - "eql_v2.{0}({1}) must declare a combinefunc for partial aggregation", + "eql_v3.{0}({1}) must declare a combinefunc for partial aggregation", agg, d, ), @@ -23585,10 +23579,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2290usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2302usize, start_col: 22usize, - end_line: 2290usize, + end_line: 2302usize, end_col: 77usize, compile_fail: false, no_run: false, @@ -23615,7 +23609,7 @@ pub mod int4 { FROM pg_proc p \ JOIN pg_aggregate a ON a.aggfnoid = p.oid \ WHERE p.proname = $1 \ - AND p.pronamespace = 'eql_v2'::regnamespace \ + AND p.pronamespace = 'eql_v3'::regnamespace \ AND p.proargtypes[0]::regtype = $2::regtype", ) .bind(agg) @@ -23626,7 +23620,7 @@ pub mod int4 { return ::anyhow::__private::Err({ let error = ::anyhow::__private::format_err( format_args!( - "eql_v2.{0}({1}) must be PARALLEL SAFE (proparallel=\'s\'), got {2:?}", + "eql_v3.{0}({1}) must be PARALLEL SAFE (proparallel=\'s\'), got {2:?}", agg, d, proparallel, @@ -23639,7 +23633,7 @@ pub mod int4 { return ::anyhow::__private::Err({ let error = ::anyhow::__private::format_err( format_args!( - "eql_v2.{0}({1}) must declare a combinefunc for partial aggregation", + "eql_v3.{0}({1}) must declare a combinefunc for partial aggregation", agg, d, ), @@ -23694,10 +23688,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2531usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2543usize, start_col: 22usize, - end_line: 2531usize, + end_line: 2543usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -23749,7 +23743,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value) FROM typecheck_table", + "SELECT eql_v3.{0}(value) FROM typecheck_table", "min", ), ) @@ -23761,7 +23755,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on non-ord variant {1} must raise but succeeded", + "eql_v3.{0} on non-ord variant {1} must raise but succeeded", "min", d, ), @@ -23780,7 +23774,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v2.{0}({1}), got {2:?} (message: {3})", + "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v3.{0}({1}), got {2:?} (message: {3})", "min", d, code, @@ -23839,10 +23833,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2531usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2543usize, start_col: 22usize, - end_line: 2531usize, + end_line: 2543usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -23894,7 +23888,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value) FROM typecheck_table", + "SELECT eql_v3.{0}(value) FROM typecheck_table", "max", ), ) @@ -23906,7 +23900,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on non-ord variant {1} must raise but succeeded", + "eql_v3.{0} on non-ord variant {1} must raise but succeeded", "max", d, ), @@ -23925,7 +23919,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v2.{0}({1}), got {2:?} (message: {3})", + "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v3.{0}({1}), got {2:?} (message: {3})", "max", d, code, @@ -23984,10 +23978,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2531usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2543usize, start_col: 22usize, - end_line: 2531usize, + end_line: 2543usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -24039,7 +24033,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value) FROM typecheck_table", + "SELECT eql_v3.{0}(value) FROM typecheck_table", "min", ), ) @@ -24051,7 +24045,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on non-ord variant {1} must raise but succeeded", + "eql_v3.{0} on non-ord variant {1} must raise but succeeded", "min", d, ), @@ -24070,7 +24064,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v2.{0}({1}), got {2:?} (message: {3})", + "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v3.{0}({1}), got {2:?} (message: {3})", "min", d, code, @@ -24129,10 +24123,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2531usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2543usize, start_col: 22usize, - end_line: 2531usize, + end_line: 2543usize, end_col: 83usize, compile_fail: false, no_run: false, @@ -24184,7 +24178,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT eql_v2.{0}(value) FROM typecheck_table", + "SELECT eql_v3.{0}(value) FROM typecheck_table", "max", ), ) @@ -24196,7 +24190,7 @@ pub mod int4 { &::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "eql_v2.{0} on non-ord variant {1} must raise but succeeded", + "eql_v3.{0} on non-ord variant {1} must raise but succeeded", "max", d, ), @@ -24215,7 +24209,7 @@ pub mod int4 { ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v2.{0}({1}), got {2:?} (message: {3})", + "expected SQLSTATE 42883 (undefined_function) or 42725 (ambiguous_function) for eql_v3.{0}({1}), got {2:?} (message: {3})", "max", d, code, @@ -24274,10 +24268,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2632usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2644usize, start_col: 22usize, - end_line: 2632usize, + end_line: 2644usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -24300,7 +24294,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Storage); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -24402,10 +24396,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2665usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2677usize, start_col: 22usize, - end_line: 2665usize, + end_line: 2677usize, end_col: 69usize, compile_fail: false, no_run: false, @@ -24428,7 +24422,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Storage); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!("SELECT COUNT(payload::{0}) FROM {1}", d, fixture), @@ -24506,10 +24500,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2632usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2644usize, start_col: 22usize, - end_line: 2632usize, + end_line: 2644usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -24532,7 +24526,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Eq); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -24632,10 +24626,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_eq_count_path_cast"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2665usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2677usize, start_col: 22usize, - end_line: 2665usize, + end_line: 2677usize, end_col: 69usize, compile_fail: false, no_run: false, @@ -24658,7 +24652,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Eq); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!("SELECT COUNT(payload::{0}) FROM {1}", d, fixture), @@ -24736,10 +24730,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2709usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2721usize, start_col: 22usize, - end_line: 2709usize, + end_line: 2721usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -24768,7 +24762,7 @@ pub mod int4 { ::alloc::fmt::format(format_args!("{0}(value)", extractor_fn)) }); let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -24876,10 +24870,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2632usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2644usize, start_col: 22usize, - end_line: 2632usize, + end_line: 2644usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -24902,7 +24896,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -25002,10 +24996,10 @@ pub mod int4 { name: test::StaticTestName("scalars::int4::matrix_int4_ord_count_path_cast"), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2665usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2677usize, start_col: 22usize, - end_line: 2665usize, + end_line: 2677usize, end_col: 69usize, compile_fail: false, no_run: false, @@ -25028,7 +25022,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::Ord); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!("SELECT COUNT(payload::{0}) FROM {1}", d, fixture), @@ -25106,10 +25100,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2709usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2721usize, start_col: 22usize, - end_line: 2709usize, + end_line: 2721usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -25138,7 +25132,7 @@ pub mod int4 { ::alloc::fmt::format(format_args!("{0}(value)", extractor_fn)) }); let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -25246,10 +25240,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2632usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2644usize, start_col: 22usize, - end_line: 2632usize, + end_line: 2644usize, end_col: 72usize, compile_fail: false, no_run: false, @@ -25272,7 +25266,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -25374,10 +25368,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2665usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2677usize, start_col: 22usize, - end_line: 2665usize, + end_line: 2677usize, end_col: 69usize, compile_fail: false, no_run: false, @@ -25400,7 +25394,7 @@ pub mod int4 { >(::eql_tests::scalar_domains::Variant::OrdOre); let d = &spec.sql_domain; let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!("SELECT COUNT(payload::{0}) FROM {1}", d, fixture), @@ -25478,10 +25472,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 2709usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2721usize, start_col: 22usize, - end_line: 2709usize, + end_line: 2721usize, end_col: 78usize, compile_fail: false, no_run: false, @@ -25510,7 +25504,7 @@ pub mod int4 { ::alloc::fmt::format(format_args!("{0}(value)", extractor_fn)) }); let fixture = ::fixture_table_name(); - let expected = ::FIXTURE_VALUES.len() as i64; + let expected = ::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query( &::alloc::__export::must_use({ @@ -25618,10 +25612,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -25638,27 +25632,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "all" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - "", &spec.sql_domain, "ASC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if "".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "ASC" == "DESC" { @@ -25739,10 +25747,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -25759,27 +25767,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "all" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - "", &spec.sql_domain, "DESC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if "".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "DESC" == "DESC" { @@ -25860,10 +25882,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -25880,27 +25902,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "gt_zero" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - " WHERE plaintext > 0", &spec.sql_domain, "ASC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if " WHERE plaintext > 0".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "ASC" == "DESC" { @@ -25981,10 +26017,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26001,27 +26037,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::Ord); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "gt_zero" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - " WHERE plaintext > 0", &spec.sql_domain, "DESC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if " WHERE plaintext > 0".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "DESC" == "DESC" { @@ -26102,10 +26152,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26122,27 +26172,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "all" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - "", &spec.sql_domain, "ASC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if "".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "ASC" == "DESC" { @@ -26223,10 +26287,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26243,27 +26307,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "all" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - "", &spec.sql_domain, "DESC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if "".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "DESC" == "DESC" { @@ -26344,10 +26422,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26364,27 +26442,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "gt_zero" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - " WHERE plaintext > 0", &spec.sql_domain, "ASC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if " WHERE plaintext > 0".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "ASC" == "DESC" { @@ -26465,10 +26557,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1781usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1782usize, start_col: 22usize, - end_line: 1781usize, + end_line: 1782usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26485,27 +26577,41 @@ pub mod int4 { pool: sqlx::PgPool, ) -> anyhow::Result<()> { { + use ::eql_tests::scalar_domains::ScalarType; let spec = ::eql_tests::scalar_domains::ScalarDomainSpec::new::< i32, >(::eql_tests::scalar_domains::Variant::OrdOre); - let fixture_table = ::fixture_table_name(); + let fixture_table = ::fixture_table_name(); + let zero: i32 = Default::default(); + let gt_zero = "gt_zero" == "gt_zero"; + let where_clause = if gt_zero { + ::alloc::__export::must_use({ + ::alloc::fmt::format( + format_args!( + " WHERE plaintext > {0}", + ::to_sql_literal(zero), + ), + ) + }) + } else { + String::new() + }; let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {0}{1} ORDER BY eql_v2.ord_term(payload::{2}) {3}", + "SELECT plaintext FROM {0}{3} ORDER BY eql_v3.ord_term(payload::{1}) {2}", fixture_table, - " WHERE plaintext > 0", &spec.sql_domain, "DESC", + where_clause, ), ) }); let actual: Vec = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: i32 = Default::default(); - let mut expected: Vec = ::FIXTURE_VALUES + let mut expected: Vec = ::fixture_values() .to_vec(); expected.sort(); - if " WHERE plaintext > 0".contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if "DESC" == "DESC" { @@ -26586,10 +26692,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26661,7 +26767,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "ASC", "FIRST", table, @@ -26671,7 +26777,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "ASC" == "DESC" { @@ -26762,10 +26868,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -26837,7 +26943,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "ASC", "LAST", table, @@ -26847,7 +26953,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "ASC" == "DESC" { @@ -26938,10 +27044,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27013,7 +27119,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "DESC", "FIRST", table, @@ -27023,7 +27129,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "DESC" == "DESC" { @@ -27114,10 +27220,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27189,7 +27295,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "DESC", "LAST", table, @@ -27199,7 +27305,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "DESC" == "DESC" { @@ -27290,10 +27396,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27365,7 +27471,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "ASC", "FIRST", table, @@ -27375,7 +27481,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "ASC" == "DESC" { @@ -27466,10 +27572,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27541,7 +27647,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "ASC", "LAST", table, @@ -27551,7 +27657,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "ASC" == "DESC" { @@ -27642,10 +27748,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27717,7 +27823,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "DESC", "FIRST", table, @@ -27727,7 +27833,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "DESC" == "DESC" { @@ -27818,10 +27924,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1880usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 1892usize, start_col: 22usize, - end_line: 1880usize, + end_line: 1892usize, end_col: 74usize, compile_fail: false, no_run: false, @@ -27893,7 +27999,7 @@ pub mod int4 { let sql = ::alloc::__export::must_use({ ::alloc::fmt::format( format_args!( - "SELECT plaintext FROM {2} ORDER BY eql_v2.ord_term(value) {0} NULLS {1}", + "SELECT plaintext FROM {2} ORDER BY eql_v3.ord_term(value) {0} NULLS {1}", "DESC", "LAST", table, @@ -27903,7 +28009,7 @@ pub mod int4 { let actual: Vec> = sqlx::query_scalar(&sql) .fetch_all(&mut *tx) .await?; - let mut non_null: Vec = ::FIXTURE_VALUES + let mut non_null: Vec = ::fixture_values() .to_vec(); non_null.sort(); if "DESC" == "DESC" { @@ -27994,10 +28100,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28097,10 +28203,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28200,10 +28306,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28303,10 +28409,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28406,10 +28512,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28509,10 +28615,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28612,10 +28718,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, @@ -28715,10 +28821,10 @@ pub mod int4 { ), ignore: false, ignore_message: ::core::option::Option::None, - source_file: "src/matrix.rs", - start_line: 1997usize, + source_file: "tests/sqlx/src/matrix.rs", + start_line: 2009usize, start_col: 22usize, - end_line: 1997usize, + end_line: 2009usize, end_col: 87usize, compile_fail: false, no_run: false, diff --git a/tests/sqlx/src/matrix.rs b/tests/sqlx/src/matrix.rs index 644ea351..2fdb9e5b 100644 --- a/tests/sqlx/src/matrix.rs +++ b/tests/sqlx/src/matrix.rs @@ -149,10 +149,11 @@ fn collect_index_scan_nodes(value: &serde_json::Value, found: &mut Vec<(String, /// type (see `scalar_domains.rs`, `format!("eql_v3.{}…", T::PG_TYPE)`). /// /// Pivots — the comparison anchors swept by the correctness / cross-shape -/// arms — are derived from the scalar type: `MIN`, `MAX`, and zero -/// (`Default::default()`). The fixture must contain those three plaintext -/// rows, since each pivot's ciphertext is fetched at test time via -/// `fetch_fixture_payload`. +/// arms — are derived from the scalar type: `min_pivot()`, `max_pivot()`, and +/// zero (`Default::default()`). Integer scalars resolve `min_pivot`/`max_pivot` +/// to `Self::MIN`/`Self::MAX`; temporal scalars use explicit sentinel dates. The +/// fixture must contain those three plaintext rows, since each pivot's +/// ciphertext is fetched at test time via `fetch_fixture_payload`. #[macro_export] macro_rules! ordered_numeric_matrix { ( @@ -175,8 +176,8 @@ macro_rules! ordered_numeric_matrix { ord_domains = [(ord, Ord), (ord_ore, OrdOre)], ord_ore_domains = [(ord_ore, OrdOre)], pivots = [ - (min, <$scalar>::MIN), - (max, <$scalar>::MAX), + (min, <$scalar as $crate::scalar_domains::ScalarType>::min_pivot()), + (max, <$scalar as $crate::scalar_domains::ScalarType>::max_pivot()), (zero, <$scalar as ::core::default::Default>::default()), ], eq_ops = [(eq, "="), (neq, "<>")], @@ -1179,7 +1180,7 @@ macro_rules! __scalar_matrix_scale_case { "_scale_", $using, "_idx", ); - let values: &[$scalar] = <$scalar as ScalarType>::FIXTURE_VALUES; + let values: &[$scalar] = <$scalar as ScalarType>::fixture_values(); anyhow::ensure!(values.len() >= 2, "scale test requires >= 2 fixture rows for distinct filler/pivot"); let filler = values[0]; @@ -1277,7 +1278,7 @@ macro_rules! __scalar_matrix_scale_default_case { "_scaledef_", $using, "_idx", ); - let values: &[$scalar] = <$scalar as ScalarType>::FIXTURE_VALUES; + let values: &[$scalar] = <$scalar as ScalarType>::fixture_values(); anyhow::ensure!(values.len() >= 2, "scale test requires >= 2 fixture rows for distinct filler/pivot"); let filler = values[0]; @@ -1324,8 +1325,8 @@ SELECT $1::jsonb::{d} FROM generate_series(1, 5000)", // ============================================================================ // Fixture-shape category — one test per type that pins the fixture's -// structural invariants: row count matches `T::FIXTURE_VALUES.len()`, -// ids are sequential from 1, plaintext column matches FIXTURE_VALUES in +// structural invariants: row count matches `T::fixture_values().len()`, +// ids are sequential from 1, plaintext column matches fixture_values() in // order, every payload carries the variant terms (`hm`, `ob`, `c`), // distinct plaintexts produce distinct hm terms, every payload declares // `v=2`. A single test runs all assertions to keep pool-setup cost @@ -1345,7 +1346,7 @@ macro_rules! __scalar_matrix_fixture_shape { ) -> anyhow::Result<()> { use $crate::scalar_domains::ScalarType; let table = <$scalar as ScalarType>::fixture_table_name(); - let expected: &[$scalar] = <$scalar as ScalarType>::FIXTURE_VALUES; + let expected: &[$scalar] = <$scalar as ScalarType>::fixture_values(); let n = expected.len() as i64; let count: i64 = sqlx::query_scalar(&format!( @@ -1457,7 +1458,7 @@ macro_rules! __scalar_matrix_ord_routes_case { let fixture_table = <$scalar as $crate::scalar_domains::ScalarType>::fixture_table_name(); let pivot: $scalar = - <$scalar as $crate::scalar_domains::ScalarType>::FIXTURE_VALUES[0]; + <$scalar as $crate::scalar_domains::ScalarType>::fixture_values()[0]; let pivot_lit = <$scalar as $crate::scalar_domains::ScalarType>::to_sql_literal(pivot); @@ -1508,7 +1509,7 @@ macro_rules! __scalar_matrix_ord_routes_case { // relaxed the two assertions cannot silently compensate for // each other — the derivation stays honest regardless. let expected_neq = - <$scalar as $crate::scalar_domains::ScalarType>::FIXTURE_VALUES.len() as i64 + <$scalar as $crate::scalar_domains::ScalarType>::fixture_values().len() as i64 - eq_count; let neq_count: i64 = sqlx::query_scalar(&format!( "SELECT count(*) FROM {table} WHERE value <> $1::jsonb::{d}", @@ -1672,7 +1673,7 @@ macro_rules! __scalar_matrix_index_case { .execute(&mut *tx).await?; sqlx::query("SET LOCAL enable_seqscan = off").execute(&mut *tx).await?; - let pivot: $scalar = <$scalar as $crate::scalar_domains::ScalarType>::FIXTURE_VALUES[0]; + let pivot: $scalar = <$scalar as $crate::scalar_domains::ScalarType>::fixture_values()[0]; let payload = $crate::scalar_domains::fetch_fixture_payload::<$scalar>(&pool, pivot).await?; let lit = $crate::scalar_domains::sql_string_literal(&payload); @@ -1747,24 +1748,22 @@ macro_rules! __scalar_matrix_order_by_domain { $crate::__scalar_matrix_order_by_case! { suite = $suite, scalar = $scalar, script = $script, script_path = $script_path, dom_name = $dom_name, variant = $variant, - mode_name = asc_no_where, direction = "ASC", where_clause = "", + mode_name = asc_no_where, direction = "ASC", filter = all, } $crate::__scalar_matrix_order_by_case! { suite = $suite, scalar = $scalar, script = $script, script_path = $script_path, dom_name = $dom_name, variant = $variant, - mode_name = desc_no_where, direction = "DESC", where_clause = "", + mode_name = desc_no_where, direction = "DESC", filter = all, } $crate::__scalar_matrix_order_by_case! { suite = $suite, scalar = $scalar, script = $script, script_path = $script_path, dom_name = $dom_name, variant = $variant, - mode_name = asc_with_where, direction = "ASC", - where_clause = " WHERE plaintext > 0", + mode_name = asc_with_where, direction = "ASC", filter = gt_zero, } $crate::__scalar_matrix_order_by_case! { suite = $suite, scalar = $scalar, script = $script, script_path = $script_path, dom_name = $dom_name, variant = $variant, - mode_name = desc_with_where, direction = "DESC", - where_clause = " WHERE plaintext > 0", + mode_name = desc_with_where, direction = "DESC", filter = gt_zero, } }; } @@ -1776,29 +1775,40 @@ macro_rules! __scalar_matrix_order_by_case { suite = $suite:ident, scalar = $scalar:ty, script = $script:literal, script_path = $script_path:literal, dom_name = $dom_name:ident, variant = $variant:ident, mode_name = $mode_name:ident, direction = $direction:literal, - where_clause = $where_clause:literal $(,)? + filter = $filter:ident $(,)? ) => { $crate::paste::paste! { #[sqlx::test(fixtures(path = $script_path, scripts($script)))] async fn []( pool: sqlx::PgPool, ) -> anyhow::Result<()> { + use $crate::scalar_domains::ScalarType; let spec = $crate::__scalar_matrix_spec!($scalar, $variant); - let fixture_table = - <$scalar as $crate::scalar_domains::ScalarType>::fixture_table_name(); + let fixture_table = <$scalar as ScalarType>::fixture_table_name(); + + let zero: $scalar = Default::default(); + let gt_zero = stringify!($filter) == "gt_zero"; + // Build the WHERE clause from the zero pivot's SQL literal so it + // is type-agnostic: `plaintext > 0` for integers, `plaintext > + // '1970-01-01'` for dates. A hardcoded `> 0` would not typecheck + // against a non-integer plaintext column. + let where_clause = if gt_zero { + format!(" WHERE plaintext > {}", <$scalar as ScalarType>::to_sql_literal(zero)) + } else { + String::new() + }; let sql = format!( "SELECT plaintext FROM {fixture}{where_clause} \ ORDER BY eql_v3.ord_term(payload::{d}) {dir}", - fixture = fixture_table, where_clause = $where_clause, + fixture = fixture_table, d = &spec.sql_domain, dir = $direction, ); let actual: Vec<$scalar> = sqlx::query_scalar(&sql).fetch_all(&pool).await?; - let zero: $scalar = Default::default(); let mut expected: Vec<$scalar> = - <$scalar as $crate::scalar_domains::ScalarType>::FIXTURE_VALUES.to_vec(); + <$scalar as ScalarType>::fixture_values().to_vec(); expected.sort(); - if $where_clause.contains("plaintext > 0") { + if gt_zero { expected.retain(|v| *v > zero); } if $direction == "DESC" { expected.reverse(); } @@ -1922,7 +1932,7 @@ ORDER BY eql_v3.ord_term(value) {dir} NULLS {nulls}", // Ground truth: non-NULL plaintexts sorted (reversed for DESC), // with NULL_ROWS Nones at the requested end. let mut non_null: Vec<$scalar> = - <$scalar as $crate::scalar_domains::ScalarType>::FIXTURE_VALUES.to_vec(); + <$scalar as $crate::scalar_domains::ScalarType>::fixture_values().to_vec(); non_null.sort(); if $direction == "DESC" { non_null.reverse(); } let sorted = non_null.into_iter().map(Some); @@ -2093,7 +2103,7 @@ macro_rules! __scalar_matrix_aggregate_case { let spec = $crate::__scalar_matrix_spec!($scalar, $variant); let d = &spec.sql_domain; let fixture = <$scalar as ScalarType>::fixture_table_name(); - let extremum: $scalar = <$scalar as ScalarType>::FIXTURE_VALUES + let extremum: $scalar = <$scalar as ScalarType>::fixture_values() .iter() .copied() .$picker() @@ -2202,7 +2212,7 @@ macro_rules! __scalar_matrix_aggregate_case { let spec = $crate::__scalar_matrix_spec!($scalar, $variant); let d = &spec.sql_domain; let fixture = <$scalar as ScalarType>::fixture_table_name(); - let values: &[$scalar] = <$scalar as ScalarType>::FIXTURE_VALUES; + let values: &[$scalar] = <$scalar as ScalarType>::fixture_values(); anyhow::ensure!( values.len() >= 2, "mixed-NULL test needs >= 2 fixture values; got {}", @@ -2381,7 +2391,7 @@ macro_rules! __scalar_matrix_aggregate_group_by_case { let spec = $crate::__scalar_matrix_spec!($scalar, $variant); let d = &spec.sql_domain; let fixture = <$scalar as ScalarType>::fixture_table_name(); - let values: &[$scalar] = <$scalar as ScalarType>::FIXTURE_VALUES; + let values: &[$scalar] = <$scalar as ScalarType>::fixture_values(); anyhow::ensure!( values.len() >= 5, "GROUP BY test needs >= 5 fixture values; got {}", @@ -2638,7 +2648,7 @@ macro_rules! __scalar_matrix_count_case { let spec = $crate::__scalar_matrix_spec!($scalar, $variant); let d = &spec.sql_domain; let fixture = <$scalar as ScalarType>::fixture_table_name(); - let expected = <$scalar as ScalarType>::FIXTURE_VALUES.len() as i64; + let expected = <$scalar as ScalarType>::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query(&format!( @@ -2671,7 +2681,7 @@ macro_rules! __scalar_matrix_count_case { let spec = $crate::__scalar_matrix_spec!($scalar, $variant); let d = &spec.sql_domain; let fixture = <$scalar as ScalarType>::fixture_table_name(); - let expected = <$scalar as ScalarType>::FIXTURE_VALUES.len() as i64; + let expected = <$scalar as ScalarType>::fixture_values().len() as i64; let sql = format!( "SELECT COUNT(payload::{d}) FROM {fixture}", @@ -2718,7 +2728,7 @@ macro_rules! __scalar_matrix_count_distinct_dispatch { .expect("non-Storage variant must expose an extractor"); let extractor = format!("{extractor_fn}(value)"); let fixture = <$scalar as ScalarType>::fixture_table_name(); - let expected = <$scalar as ScalarType>::FIXTURE_VALUES.len() as i64; + let expected = <$scalar as ScalarType>::fixture_values().len() as i64; let mut tx = pool.begin().await?; sqlx::query(&format!( diff --git a/tests/sqlx/src/scalar_domains.rs b/tests/sqlx/src/scalar_domains.rs index e9f91e3b..ba432c3e 100644 --- a/tests/sqlx/src/scalar_domains.rs +++ b/tests/sqlx/src/scalar_domains.rs @@ -7,7 +7,7 @@ //! else — the four `eql_v2_{,_eq,_ord,_ord_ore}` domains, per-domain //! payload shapes, supported operators, index extractor expressions, //! ground-truth result sets — is derived from `T::PG_TYPE`, -//! `T::FIXTURE_VALUES`, and the `Variant` enum. +//! `T::fixture_values()`, and the `Variant` enum. use anyhow::{bail, Context, Result}; use sqlx::PgPool; @@ -34,12 +34,27 @@ pub trait ScalarType: /// Distinct plaintext values present in the fixture. Order doesn't /// matter — `expected_forward` sorts before returning. /// - /// For types driven by `ordered_numeric_matrix!`, the fixture MUST - /// include `MIN`, `MAX`, and zero (`Default::default()`): the matrix - /// uses those three as comparison pivots and fetches each one's - /// ciphertext via `fetch_fixture_payload`, which fails loudly if the - /// row is absent. - const FIXTURE_VALUES: &'static [Self]; + /// A method rather than a `const` so a scalar whose values can't be + /// `const`-constructed can return a borrow of a lazily-built `Vec`; + /// integer scalars return their `eql_scalars::_VALUES` const directly. + /// + /// For types driven by `ordered_numeric_matrix!`, the values MUST + /// include the three pivots (`min_pivot()`, `max_pivot()`, and zero + /// `Default::default()`): the matrix uses those as comparison pivots and + /// fetches each one's ciphertext via `fetch_fixture_payload`, which fails + /// loudly if the row is absent. + fn fixture_values() -> &'static [Self]; + + /// The low comparison pivot swept by the correctness / cross-shape arms. + /// Integer scalars return `Self::MIN`. A trait method (rather than the + /// matrix referencing `Self::MIN` directly) so a scalar without an inherent + /// `::MIN` const can supply an explicit sentinel; the returned value must be + /// present verbatim in `fixture_values()`. + fn min_pivot() -> Self; + + /// The high comparison pivot. Integer scalars return `Self::MAX`. Must be + /// present verbatim in `fixture_values()`. + fn max_pivot() -> Self; /// `fixtures.eql_v2_`. fn fixture_table_name() -> String { @@ -64,7 +79,7 @@ pub trait ScalarType: ">=" => |a, b| a >= b, other => panic!("expected_forward: unsupported operator {other}"), }; - let mut values: Vec = Self::FIXTURE_VALUES + let mut values: Vec = Self::fixture_values() .iter() .copied() .filter(|v| predicate(*v, pivot)) @@ -75,9 +90,10 @@ pub trait ScalarType: } // The per-type `impl ScalarType` blocks (one per scalar, each carrying its -// `PG_TYPE` token string and `FIXTURE_VALUES = eql_scalars::_VALUES`) -// are generated from the single harness list in `scalar_types.rs`. To add a -// type, add a `token => rust_type` line there — not an impl here. +// `PG_TYPE` token string, `fixture_values() = eql_scalars::_VALUES`, and +// `min_pivot()`/`max_pivot()` = `Self::MIN`/`Self::MAX`) are generated from the +// single harness list in `scalar_types.rs`. To add a type, add a +// `token => rust_type` line there — not an impl here. crate::scalar_types!(scalar_type_impls); /// Per-domain capability + payload shape. Storage carries no terms, `Eq` diff --git a/tests/sqlx/tests/encrypted_domain/family/mutations.rs b/tests/sqlx/tests/encrypted_domain/family/mutations.rs index 7be20853..a9cb23ce 100644 --- a/tests/sqlx/tests/encrypted_domain/family/mutations.rs +++ b/tests/sqlx/tests/encrypted_domain/family/mutations.rs @@ -209,7 +209,7 @@ async fn blocking_lt_flips_lt_arm_but_not_order_by(pool: PgPool) -> Result<()> { let order_by_sql = "SELECT plaintext FROM fixtures.eql_v2_int4 \ ORDER BY eql_v3.ord_term(payload::eql_v3.int4_ord) ASC"; - let mut ascending: Vec = ::FIXTURE_VALUES.to_vec(); + let mut ascending: Vec = ::fixture_values().to_vec(); ascending.sort(); // Baseline: `<` works (no raise) and ORDER BY is plaintext-sorted. @@ -336,7 +336,7 @@ async fn collapsing_ord_term_flips_order_by_arm(pool: PgPool) -> Result<()> { let order_by_desc = "SELECT plaintext FROM fixtures.eql_v2_int4 \ ORDER BY eql_v3.ord_term(payload::eql_v3.int4_ord) DESC"; - let mut descending: Vec = ::FIXTURE_VALUES.to_vec(); + let mut descending: Vec = ::fixture_values().to_vec(); descending.sort(); descending.reverse(); From 09d1de1778fe5f97b0eb3bddc48b9e7e7f8d23ca Mon Sep 17 00:00:00 2001 From: Toby Hede Date: Thu, 4 Jun 2026 09:20:46 +1000 Subject: [PATCH 2/2] fix: apply CodeRabbit auto-fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - scalar_domains.rs: document fixture_values() stable-order contract (callers compare element-wise and index positionally without sorting) - eql-tests-macros: assert emitted min_pivot/max_pivot bodies instead of loose MIN/MAX substrings that also match the doc comment 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- crates/eql-tests-macros/src/lib.rs | 11 +++++++---- tests/sqlx/src/scalar_domains.rs | 9 +++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/crates/eql-tests-macros/src/lib.rs b/crates/eql-tests-macros/src/lib.rs index 408648ae..b88a0677 100644 --- a/crates/eql-tests-macros/src/lib.rs +++ b/crates/eql-tests-macros/src/lib.rs @@ -267,10 +267,13 @@ mod tests { assert!(out.contains(":: eql_scalars :: INT8_VALUES")); // const→fn: fixture values is a method now, plus the integer pivots. assert!(out.contains("fn fixture_values")); - assert!(out.contains("fn min_pivot")); - assert!(out.contains("fn max_pivot")); - assert!(out.contains("MIN")); - assert!(out.contains("MAX")); + // Assert the emitted pivot bodies, not bare `MIN`/`MAX` substrings: + // the latter also appear in the doc comment, so a loose check would + // pass even if the bodies stopped returning the inherent bounds. + assert!(out.contains("fn min_pivot () -> i32 { < i32 > :: MIN }")); + assert!(out.contains("fn max_pivot () -> i32 { < i32 > :: MAX }")); + assert!(out.contains("fn min_pivot () -> i64 { < i64 > :: MIN }")); + assert!(out.contains("fn max_pivot () -> i64 { < i64 > :: MAX }")); } #[test] diff --git a/tests/sqlx/src/scalar_domains.rs b/tests/sqlx/src/scalar_domains.rs index ba432c3e..6c3d9a0c 100644 --- a/tests/sqlx/src/scalar_domains.rs +++ b/tests/sqlx/src/scalar_domains.rs @@ -31,8 +31,13 @@ pub trait ScalarType: /// name and the fixture script name. Examples: `"int4"`, `"int8"`. const PG_TYPE: &'static str; - /// Distinct plaintext values present in the fixture. Order doesn't - /// matter — `expected_forward` sorts before returning. + /// Distinct plaintext values present in the fixture, in a stable + /// order that MUST match fixture insertion order (the SQL script's + /// `id` sequence). Callers rely on this: the fixture-shape test + /// compares this slice element-wise against the `ORDER BY id` + /// plaintext column, and the scale/index arms index positionally + /// (`[0]`, `[len / 2]`) without sorting. A lazily-built `Vec` impl + /// must therefore be built deterministically in that same order. /// /// A method rather than a `const` so a scalar whose values can't be /// `const`-constructed can return a borrow of a lazily-built `Vec`;