pivotDialectAllowed reports whether PIVOT/UNPIVOT is a recognized clause for the parser's current dialect. PIVOT/UNPIVOT are SQL Server, Oracle, and Snowflake extensions; in other dialects the words must remain valid identifiers.
()
| 69 | // and Snowflake extensions; in other dialects the words must remain valid |
| 70 | // identifiers. |
| 71 | func (p *Parser) pivotDialectAllowed() bool { |
| 72 | return p.dialect == string(keywords.DialectSQLServer) || |
| 73 | p.dialect == string(keywords.DialectOracle) || |
| 74 | p.dialect == string(keywords.DialectSnowflake) |
| 75 | } |
| 76 | |
| 77 | // isPivotKeyword returns true if the current token is the contextual PIVOT |
| 78 | // isQualifyKeyword returns true if the current token is the Snowflake / |
no outgoing calls
no test coverage detected