-
- Downloads
Rewrite parser's handling of INSERT ... SELECT so that processing
of the SELECT part of the statement is just like a plain SELECT. All INSERT-specific processing happens after the SELECT parsing is done. This eliminates many problems, e.g. INSERT ... SELECT ... GROUP BY using the wrong column labels. Ensure that DEFAULT clauses are coerced to the target column type, whether or not stored clause produces the right type. Substantial cleanup of parser's array support.
Showing
- src/backend/executor/execQual.c 54 additions, 27 deletionssrc/backend/executor/execQual.c
- src/backend/parser/analyze.c 204 additions, 141 deletionssrc/backend/parser/analyze.c
- src/backend/parser/parse_clause.c 136 additions, 213 deletionssrc/backend/parser/parse_clause.c
- src/backend/parser/parse_expr.c 44 additions, 35 deletionssrc/backend/parser/parse_expr.c
- src/backend/parser/parse_node.c 133 additions, 112 deletionssrc/backend/parser/parse_node.c
- src/backend/parser/parse_relation.c 11 additions, 123 deletionssrc/backend/parser/parse_relation.c
- src/backend/parser/parse_target.c 244 additions, 630 deletionssrc/backend/parser/parse_target.c
- src/include/parser/parse_clause.h 5 additions, 3 deletionssrc/include/parser/parse_clause.h
- src/include/parser/parse_expr.h 6 additions, 2 deletionssrc/include/parser/parse_expr.h
- src/include/parser/parse_node.h 6 additions, 8 deletionssrc/include/parser/parse_node.h
- src/include/parser/parse_relation.h 6 additions, 8 deletionssrc/include/parser/parse_relation.h
- src/include/parser/parse_target.h 8 additions, 17 deletionssrc/include/parser/parse_target.h
Loading
Please register or sign in to comment