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

Function test_simple_column_selection

tests/decimal_simple_select_test.rs:51–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50#[test]
51fn test_simple_column_selection() {
52 let conn = setup_test_db();
53
54 // Test 1: Simple column selection should NOT be wrapped
55 let sql = "SELECT price FROM products";
56 let result = rewrite_query(&conn, sql).unwrap();
57 println!("Simple SELECT rewritten to: {result}");
58
59 // The simple column reference should NOT be wrapped in decimal_from_text
60 assert_eq!(result, "SELECT price FROM products");
61}
62
63#[test]
64fn test_arithmetic_needs_wrapping() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70
rewrite_queryFunction · 0.70

Tested by

no test coverage detected