aboutsummaryrefslogtreecommitdiff
path: root/src/backend/parser/parse_utilcmd.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-03-11 16:27:51 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-03-11 16:28:18 -0500
commit8acdb8bf9cebc42cee5aa96a2d594756b44173c9 (patch)
tree3db28ae99dfb962e4ac5f2f338a15d2b5c7a476e /src/backend/parser/parse_utilcmd.c
parent7a8f43968add3c69b79c49ef236d945e643dcb1e (diff)
downloadpostgresql-8acdb8bf9cebc42cee5aa96a2d594756b44173c9.tar.gz
postgresql-8acdb8bf9cebc42cee5aa96a2d594756b44173c9.zip
Split CollateClause into separate raw and analyzed node types.
CollateClause is now used only in raw grammar output, and CollateExpr after parse analysis. This is for clarity and to avoid carrying collation names in post-analysis parse trees: that's both wasteful and possibly misleading, since the collation's name could be changed while the parsetree still exists. Also, clean up assorted infelicities and omissions in processing of the node type.
Diffstat (limited to 'src/backend/parser/parse_utilcmd.c')
-rw-r--r--src/backend/parser/parse_utilcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c
index e876853af02..06baf89886a 100644
--- a/src/backend/parser/parse_utilcmd.c
+++ b/src/backend/parser/parse_utilcmd.c
@@ -2467,7 +2467,7 @@ transformColumnType(CreateStmtContext *cxt, ColumnDef *column)
Oid collOid;
collOid = LookupCollation(cxt->pstate,
- column->collClause->collnames,
+ column->collClause->collname,
column->collClause->location);
/* Complain if COLLATE is applied to an uncollatable type */
if (!OidIsValid(typtup->typcollation))