Commit e474dd18 authored by Bruce Momjian's avatar Bruce Momjian

Bruce,

Attached is a small fix for a stupid mistake I made in comment.c
- an attempt to drop a non-existent comment would dump core :-(.
Sometimes, I'm as sharp as a marble.

Sorry,

Mike Mascari
parent 8cfb8c68
......@@ -171,11 +171,17 @@ void CreateComments(Oid oid, char *comment) {
}
} else {
/*** Only if comment is non-blank do we form a new tuple ***/
if ((comment != NULL) && (strlen(comment) > 0)) {
desctuple = heap_formtuple(tupDesc, values, nulls);
heap_insert(description, desctuple);
modified = TRUE;
}
}
/*** Complete the scan, update indices, if necessary ***/
heap_endscan(scan);
......
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