*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.107 2005/04/28 21:47:14 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_relation.c,v 1.108 2005/05/29 17:10:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
varnode = makeVar(rtindex,
attnum,
atttypid,
- -1,
+ colDef->typename->typmod,
sublevels_up);
*colvars = lappend(*colvars, varnode);
ColumnDef *colDef = list_nth(rte->coldeflist, attnum - 1);
*vartype = typenameTypeId(colDef->typename);
- *vartypmod = -1;
+ *vartypmod = colDef->typename->typmod;
}
else
{