Convert a Value to a string representation for concatenation
(&self, value: &Value)
| 5446 | |
| 5447 | /// Convert a Value to a string representation for concatenation |
| 5448 | fn value_to_string(&self, value: &Value) -> Result<String, ExecutionError> { |
| 5449 | match value { |
| 5450 | Value::String(s) => Ok(s.clone()), |
| 5451 | Value::Number(n) => Ok(n.to_string()), |
| 5452 | Value::Boolean(b) => Ok(b.to_string()), |
| 5453 | Value::Null => Err(ExecutionError::TypeError( |
| 5454 | "Cannot concatenate with NULL".to_string(), |
| 5455 | )), |
| 5456 | _ => Ok(format!("{:?}", value)), // Fallback for other types |
| 5457 | } |
| 5458 | } |
| 5459 | |
| 5460 | /// Match a string against a LIKE pattern with SQL-style wildcards |
| 5461 | fn match_like_pattern(&self, text: &str, pattern: &str) -> Result<Value, ExecutionError> { |
no test coverage detected