|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.8 1996/11/13 20:49:05 scrappy Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.9 1996/11/19 05:06:39 momjian Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -699,7 +699,6 @@ handleTargetColname(ParseState *pstate, char **resname,
|
699 | 699 | if (pstate->p_is_insert) {
|
700 | 700 | if (pstate->p_insert_columns!=NIL ) {
|
701 | 701 | Ident*id=lfirst(pstate->p_insert_columns);
|
702 |
| -Assert(lfirst(pstate->p_insert_columns)!=NIL); |
703 | 702 | *resname=id->name;
|
704 | 703 | pstate->p_insert_columns=lnext(pstate->p_insert_columns);
|
705 | 704 | }
|
@@ -732,15 +731,11 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
|
732 | 731 | refname=rte->refname;
|
733 | 732 | }
|
734 | 733 |
|
735 |
| -Assert(refname!=NULL&&rte!=NULL); |
736 |
| - |
737 |
| -Assert(rte!=NULL); |
738 | 734 | /*
|
739 | 735 | if (pstate->p_is_insert && rte == pstate->p_target_rangetblentry)
|
740 | 736 | elog(WARN, "%s not available in this context", colname);
|
741 | 737 | */
|
742 | 738 | rd=heap_open(rte->relid);
|
743 |
| -Assert(RelationIsValid(rd)); |
744 | 739 |
|
745 | 740 | resdomno_id=varattno(rd,colname);
|
746 | 741 | attrtype_id=att_typeid(rd,resdomno_id);
|
|