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

Function test_arithmetic_needs_wrapping

tests/decimal_simple_select_test.rs:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63#[test]
64fn test_arithmetic_needs_wrapping() {
65 let conn = setup_test_db();
66
67 // Test 2: Arithmetic operations SHOULD be wrapped
68 let sql = "SELECT price * 1.1 FROM products";
69 let result = rewrite_query(&conn, sql).unwrap();
70 println!("Arithmetic SELECT rewritten to: {result}");
71
72 // Arithmetic operations should use decimal functions
73 assert!(result.contains("decimal_mul"));
74}
75
76#[test]
77fn test_comparison_needs_wrapping() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected