Skip to main content

convert_value

Function convert_value 

Source
pub fn convert_value(val: &Value) -> Result<SqlValue>
Expand description

Convert a sqlparser Value to our SqlValue.

Number literal routing:

  • Pure integers → SqlValue::Int.
  • Numbers with ., e, or ESqlValue::Decimal (exact arithmetic).
  • If decimal parse fails → fallback to SqlValue::Float, then SqlValue::String.