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

Function test_implicit_cast_insert_values

tests/implicit_cast_test.rs:148–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147#[test]
148fn test_implicit_cast_insert_values() {
149 let conn = setup_test_db();
150
151 // Test: INSERT with string values for numeric columns
152 let sql = "INSERT INTO orders (product_id, amount, discount_pct) VALUES (1, '99.99', '0.15')";
153 let result = rewrite_query(&conn, sql).unwrap();
154
155 // For now, INSERT handling might not apply the rewriter
156 // This test documents expected behavior
157 assert!(result.contains("'99.99'"));
158 assert!(result.contains("'0.15'"));
159}
160
161#[test]
162fn test_implicit_cast_update_assignment() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected