| 52 | } |
| 53 | |
| 54 | void Transformer::PivotEntryCheck(const string &type) { |
| 55 | auto &entries = GetPivotEntries(); |
| 56 | if (!entries.empty()) { |
| 57 | throw ParserException( |
| 58 | "PIVOT statements with pivot elements extracted from the data cannot be used in %ss.\nIn order to use " |
| 59 | "PIVOT in a %s the PIVOT values must be manually specified, e.g.:\nPIVOT ... ON %s IN (val1, val2, ...)", |
| 60 | type, type, entries[0]->column->ToString()); |
| 61 | } |
| 62 | } |
| 63 | unique_ptr<SQLStatement> Transformer::GenerateCreateEnumStmt(unique_ptr<CreatePivotEntry> entry) { |
| 64 | auto result = make_uniq<CreateStatement>(); |
| 65 | auto info = make_uniq<CreateTypeInfo>(); |
nothing calls this directly
no test coverage detected