Simple condition evaluation for WHEN clauses. Handles common patterns without needing DataFusion: - Constants: TRUE, FALSE, 1, 0, NULL Falls back to `true` (fire the trigger) for complex conditions that require DataFusion evaluation. The trigger body itself will handle the condition via IF blocks.
(condition: &str)
| 245 | /// that require DataFusion evaluation. The trigger body itself will |
| 246 | /// handle the condition via IF blocks. |
| 247 | pub fn evaluate_simple_condition(condition: &str) -> bool { |
| 248 | super::try_eval_simple_condition(condition).unwrap_or(true) |
| 249 | } |
| 250 | |
| 251 | #[cfg(test)] |
| 252 | mod tests { |
no test coverage detected