Skip to main content

rewrite_interval_arithmetic

Function rewrite_interval_arithmetic 

Source
pub fn rewrite_interval_arithmetic(stmt: &mut Statement)
Expand description

Rewrite all INTERVAL arithmetic in a SQL Statement.

Walks the full AST and converts expr ± INTERVAL 'N' UNIT patterns to expr ± <milliseconds> for BIGINT timestamp compatibility.