*** ./src/backend/parser/parse_target.c.orig Sat Sep 8 18:59:12 2001 --- ./src/backend/parser/parse_target.c Mon Sep 17 12:04:40 2001 *************** *** 462,468 **** /* Some of these are easiest to do with the untransformed node */ switch (nodeTag(resval)) { ! case T_Ident: return ((Ident *) resval)->name; case T_Attr: { --- 462,473 ---- /* Some of these are easiest to do with the untransformed node */ switch (nodeTag(resval)) { ! case T_TypeCast: ! if(IsA(((TypeCast *)resval)->arg,Ident)) { ! return((((Ident *) ((TypeCast *) resval)->arg)->name)); ! } ! break; ! case T_Ident: return ((Ident *) resval)->name; case T_Attr: {