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

Function test_implicit_cast_integer_plus_decimal

tests/implicit_cast_test.rs:105–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104#[test]
105fn test_implicit_cast_integer_plus_decimal() {
106 let conn = setup_test_db();
107
108 // Test: integer + decimal -> decimal
109 let sql = "SELECT quantity + price FROM products";
110 let result = rewrite_query(&conn, sql).unwrap();
111
112 // Should promote integer to decimal
113 assert!(result.contains("decimal_add"));
114 assert!(result.contains("decimal_from_text"));
115}
116
117#[test]
118fn test_implicit_cast_function_argument() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected