diff options
| author | Tom Lane | 2011-04-18 19:31:52 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-04-18 19:31:52 +0000 |
| commit | 918854cc08868d569aad3bdf2529fc61c66ecde5 (patch) | |
| tree | e6175eed7446145d62b0bb707d83f29209837556 /src/include/parser | |
| parent | 04db0fdbfa9382730bb65f94bca2cd8063a3456a (diff) | |
Fix handling of collations in multi-row VALUES constructs.
Per spec we ought to apply select_common_collation() across the expressions
in each column of the VALUES table. The original coding was just taking
the first row and assuming it was representative.
This patch adds a field to struct RangeTblEntry to carry the resolved
collations, so initdb is forced for changes in stored rule representation.
Diffstat (limited to 'src/include/parser')
| -rw-r--r-- | src/include/parser/parse_relation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index 55066681f77..0158465c912 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -63,6 +63,7 @@ extern RangeTblEntry *addRangeTableEntryForFunction(ParseState *pstate, bool inFromCl); extern RangeTblEntry *addRangeTableEntryForValues(ParseState *pstate, List *exprs, + List *collations, Alias *alias, bool inFromCl); extern RangeTblEntry *addRangeTableEntryForJoin(ParseState *pstate, |
