Skip to main content

rewrite_unpivot

Function rewrite_unpivot 

Source
pub fn rewrite_unpivot(sql: &str) -> SqlResult<String>
Expand description

Rewrite an UNPIVOT statement to a UNION ALL of SELECT statements.

Returns the original sql unchanged when no UNPIVOT clause is found.