Skip to main content

rewrite_pivot

Function rewrite_pivot 

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

Rewrite a PIVOT statement to equivalent CASE WHEN SQL.

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