*** pgsql/src/backend/commands/tablecmds.c 2008/10/07 11:15:41 1.267 --- pgsql/src/backend/commands/tablecmds.c 2008/10/21 10:38:51 1.268 *************** *** 8,14 **** * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.266 2008/09/08 00:47:40 tgl Exp $ * *------------------------------------------------------------------------- */ --- 8,14 ---- * * * IDENTIFICATION ! * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.267 2008/10/07 11:15:41 heikki Exp $ * *------------------------------------------------------------------------- */ *************** ATPrepAlterColumnType(List **wqueue, *** 5520,5527 **** if (transform == NULL) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), ! errmsg("column \"%s\" cannot be cast to type \"%s\"", ! colName, TypeNameToString(typename)))); /* * Add a work queue item to make ATRewriteTable update the column --- 5520,5527 ---- if (transform == NULL) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), ! errmsg("column \"%s\" cannot be cast to type %s", ! colName, format_type_be(targettype)))); /* * Add a work queue item to make ATRewriteTable update the column *************** ATExecAlterColumnType(AlteredTableInfo * *** 5619,5626 **** if (defaultexpr == NULL) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), ! errmsg("default for column \"%s\" cannot be cast to type \"%s\"", ! colName, TypeNameToString(typename)))); } else defaultexpr = NULL; --- 5619,5626 ---- if (defaultexpr == NULL) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), ! errmsg("default for column \"%s\" cannot be cast to type %s", ! colName, format_type_be(targettype)))); } else defaultexpr = NULL;