mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-06 23:59:43 -04:00
86b3ac1453
This fix is intended to resolve the community reported issue #4659 # Description of Changes Add handling for `UnaryOperator::Minus` and `UnaryOperator::Plus` in a new `parse_insert_value()` used during `INSERT` operations. This works by convert negative unary expressions to signed numeric strings in INSERT VALUES clauses. # API and ABI breaking changes None. # Expected complexity level and risk 1 (Low). Localized parser fix. # Testing - [X] Ran local tests to verify negative numbers work in Rust, TypeScript, and C# modules - [X] Confirmed positive numbers and invalid expressions still work correctly * Testing involved running `spacetime sql module "INSERT INTO table (col) VALUES (-100.0);"` from a CLI. --------- Co-authored-by: joshua-spacetime <josh@clockworklabs.io>