Skip to content

Commit

Permalink
HAWQ-1628. Fix a bug of cassert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
oushu1wangziming1 authored and huor committed Aug 16, 2018
1 parent 48ff52c commit e6b7021
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/cdb/cdbpartition.c
Original file line number Diff line number Diff line change
Expand Up @@ -8374,7 +8374,7 @@ fixCreateStmtForPartitionedTable(CreateStmt *stmt)
int i;

/* Caller should check this! */
Assert(stmt->partitionBy && !stmt->is_part_child);
Assert(stmt->base.partitionBy && !stmt->base.is_part_child);

foreach( lc_elt, stmt->base.tableElts )
{
Expand Down
2 changes: 1 addition & 1 deletion src/backend/parser/analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ transformCreateStmt(ParseState *pstate, CreateStmt *stmt,
*extras_after = list_concat(cxt.alist, *extras_after);
cxt.alist = NIL;

Assert(stmt->constraints == NIL);
Assert(stmt->base.constraints == NIL);

/*
* Postprocess constraints that give rise to index definitions.
Expand Down

0 comments on commit e6b7021

Please sign in to comment.