Commit 2abbf392 authored by Bruce Momjian's avatar Bruce Momjian

Removed old Assert's used during development.

parent 81f5c669
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.8 1996/11/13 20:49:05 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.9 1996/11/19 05:06:39 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -699,7 +699,6 @@ handleTargetColname(ParseState *pstate, char **resname, ...@@ -699,7 +699,6 @@ handleTargetColname(ParseState *pstate, char **resname,
if (pstate->p_is_insert) { if (pstate->p_is_insert) {
if (pstate->p_insert_columns != NIL ) { if (pstate->p_insert_columns != NIL ) {
Ident *id = lfirst(pstate->p_insert_columns); Ident *id = lfirst(pstate->p_insert_columns);
Assert(lfirst(pstate->p_insert_columns) != NIL);
*resname = id->name; *resname = id->name;
pstate->p_insert_columns = lnext(pstate->p_insert_columns); pstate->p_insert_columns = lnext(pstate->p_insert_columns);
} }
...@@ -732,15 +731,11 @@ checkTargetTypes(ParseState *pstate, char *target_colname, ...@@ -732,15 +731,11 @@ checkTargetTypes(ParseState *pstate, char *target_colname,
refname = rte->refname; refname = rte->refname;
} }
Assert(refname != NULL && rte != NULL);
Assert(rte != NULL);
/* /*
if (pstate->p_is_insert && rte == pstate->p_target_rangetblentry) if (pstate->p_is_insert && rte == pstate->p_target_rangetblentry)
elog(WARN, "%s not available in this context", colname); elog(WARN, "%s not available in this context", colname);
*/ */
rd = heap_open(rte->relid); rd = heap_open(rte->relid);
Assert(RelationIsValid(rd));
resdomno_id = varattno(rd,colname); resdomno_id = varattno(rd,colname);
attrtype_id = att_typeid(rd,resdomno_id); attrtype_id = att_typeid(rd,resdomno_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment