OSDN Git Service

Rewrite parser's handling of INSERT ... SELECT so that processing
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Jul 1999 00:26:20 +0000 (00:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 19 Jul 1999 00:26:20 +0000 (00:26 +0000)
commit7f76eab140e703b7847b107245a669e2010886c0
tree8c9d01c654aa8de0e14c0d446817ba60c33d0199
parentc9814427722798751fa5bf254f597d722d76b5e3
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.
12 files changed:
src/backend/executor/execQual.c
src/backend/parser/analyze.c
src/backend/parser/parse_clause.c
src/backend/parser/parse_expr.c
src/backend/parser/parse_node.c
src/backend/parser/parse_relation.c
src/backend/parser/parse_target.c
src/include/parser/parse_clause.h
src/include/parser/parse_expr.h
src/include/parser/parse_node.h
src/include/parser/parse_relation.h
src/include/parser/parse_target.h