aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/comment.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-11-24 00:44:37 +0000
committerBruce Momjian <bruce@momjian.us>1999-11-24 00:44:37 +0000
commitbb10bf319eb301cdb5d11a5fb1709348754ac6b3 (patch)
tree830a88642fbc598f9901d8464a582ef0f9335e20 /src/backend/commands/comment.c
parent6f9ff92cc0ff6a07d2fe38abe044286ee98d44a0 (diff)
downloadpostgresql-bb10bf319eb301cdb5d11a5fb1709348754ac6b3.tar.gz
postgresql-bb10bf319eb301cdb5d11a5fb1709348754ac6b3.zip
Rename heap_replace to heap_update.
Diffstat (limited to 'src/backend/commands/comment.c')
-rw-r--r--src/backend/commands/comment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/comment.c b/src/backend/commands/comment.c
index e7419252b7c..4d58eb3ccc1 100644
--- a/src/backend/commands/comment.c
+++ b/src/backend/commands/comment.c
@@ -157,7 +157,7 @@ void CreateComments(Oid oid, char *comment) {
if (HeapTupleIsValid(searchtuple)) {
- /*** If the comment is blank, call heap_delete, else heap_replace ***/
+ /*** If the comment is blank, call heap_delete, else heap_update ***/
if ((comment == NULL) || (strlen(comment) == 0)) {
heap_delete(description, &searchtuple->t_self, NULL);
@@ -165,7 +165,7 @@ void CreateComments(Oid oid, char *comment) {
desctuple = heap_modifytuple(searchtuple, description, values,
nulls, replaces);
setheapoverride(true);
- heap_replace(description, &searchtuple->t_self, desctuple, NULL);
+ heap_update(description, &searchtuple->t_self, desctuple, NULL);
setheapoverride(false);
modified = TRUE;
}