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

Function test_implicit_cast_in_where_clause

tests/implicit_cast_test.rs:134–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133#[test]
134fn test_implicit_cast_in_where_clause() {
135 let conn = setup_test_db();
136
137 // Test complex WHERE with implicit casts
138 let sql = "SELECT * FROM products WHERE price > 50 AND quantity * price > 1000";
139 let result = rewrite_query(&conn, sql).unwrap();
140
141 // Should handle both comparisons with proper casts
142 assert!(result.contains("decimal_gt"));
143 assert!(result.contains("decimal_mul"));
144 assert!(result.contains("decimal_from_text"));
145}
146
147#[test]
148fn test_implicit_cast_insert_values() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected