MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_comparison_needs_wrapping

Function test_comparison_needs_wrapping

tests/decimal_simple_select_test.rs:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76#[test]
77fn test_comparison_needs_wrapping() {
78 let conn = setup_test_db();
79
80 // Test 3: Comparisons in WHERE clause SHOULD be wrapped
81 let sql = "SELECT * FROM products WHERE price > 100";
82 let result = rewrite_query(&conn, sql).unwrap();
83 println!("WHERE clause rewritten to: {result}");
84
85 // Comparisons should use decimal functions
86 assert!(result.contains("decimal_gt"));
87}
88
89#[test]
90fn test_aggregate_needs_wrapping() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected